Game Development Reference
In-Depth Information
Renaming classes to match the renamed script files
Compiling code
To compile code in Unity, you just need to save your script file in
MonoDevelop by choosing the Save option in the File menu from the
application menu (or by pressing Ctrl + S on the keyboard) and then
return to the main Unity Editor. On refocusing on the Unity window,
Unity automatically detects code changes in the files and then compiles
your code in response. If there are errors, the game cannot be run,
and the errors are printed to the Console window. If the compile was
successful, you don't need to do anything else, except press Play on the
Editor toolbar and test run your game. Take care here; if you forget to
save your file in MonoDevelop after making code changes, then Unity
will still use the older, compiled version of your code. For this reason
as well as for the purpose of backup, it's really important to save your
work regularly, so be sure to press Ctrl + S to save in MonoDevelop.
 
Search WWH ::




Custom Search