Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Game Development How to Make a Video Game Player Input and Cameras Gather Player Input

Kerry Owston
Kerry Owston
1,221 Points

Is whitespace allowed in the code?

I notice in the video whitespace is used like Input.GetAxisRaw ("..."); But this is autocorrected (for what of a better term) to Input.GetAxisRaw("...");

For whatever reason, the editor that opens up for me is Visual Studio.

1 Answer

Ben Reynolds
Ben Reynolds
35,170 Points

Yes that extra space before the parentheses is ok. I'm accustomed to VS so i find it a little annoying that monodevelop does that by default but it's still valid code.

I think the default editor is selected when you first install the software but you can change it in Unity under Edit->Preferences->External Tools. Either editor is fine but using monodevelop might make it a little simpler to follow along with the videos.