Hi everyone,
I’m new to Unity and am wasting a lot of time trying to code and debug my application. I’m good at using XCode and I rely on the features below. What are the best practices for doing these things in Unity?
Coding in either Javascript or C#, including full syntax highlighting and code completion. Are there better tools than Unitron?
Debugging, including viewing runtime values. I know how to use the inspector, but I don’t want to make every variable public.
Workflow - I spend a lot of time flipping between Unitron and Unity, viewing the sometimes cryptic error messages, then back again. Unitron often does not bring up the correct file or line when I double-click on the error, so I have to carefully read the error message to ensure I’m editing the the right spot. This really slows me down!
Thanks,
Dave
You can use whatever text editor you like, including Visual Studio using virtualization (not useful for Javascript).
Use debug mode, then you can see (but not modify) private variables.
Make sure your line endings are all the same, otherwise Unity gets confused as to which line is which.
–Eric
Thanks for the Linkback Zombiemaster
Thanks for the tips!
I’m evaluating TextMate, BBEdit, and MonoDevelop and will leave some comments here when I’m done. So far:
MonoDevelop looks the most promising, but the Mac preview appears too buggy for serious work. I look forward to when it is completed.
TextMate looks good, but is not doing code completion for me, even with the plugins. Should it?
BBEdit is the one I’m gravitating toward. I like the BBEdit font, the color syntax highlighting appears more complete, and it does unintelligent code completion - at least it does some!
It does the code completion somewhat selectively for me. You have to use the escape key. It’s sort of erratic for me and I don’t count on it. I assume it’s something in the way that mine is configured- oh well.