Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.