General

We can modify various templates of the new script, as well as shader and compute shader files. This can be helpful if we want to remove the empty Update stubs which, as we covered in Chapter 2, Scripting Strategies, can cause unnecessary runtime overhead. These files can be found in the following locations:

  • Windows: <Unity install>EditorDataResourcesScriptTemplates
  • macOS: /Applications/Unity/Editor/Data/Resources/ScriptTemplates/

The Assert class allows for assert-based debugging, which some developers are more comfortable with, as opposed to exception-based debugging. Check out the Unity documentation for more information on Assert: http://docs.unity3d.com/ScriptReference/Assertions.Assert.html.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.105.124