Design a site like this with WordPress.com
Get started

Day 48: New Behaviour Script

If you want to change the default new script when you Create -> C# Script in Unity, follow the path ~\Unity\Editor\Data\Resources\ScriptTemplates and edit the text file named 81-C# Script-NewBehaviourScript.cs.txt

Sorry, I don’t know what the path is on Mac

Note: You may need to run Notepad as an administrator if you get the ‘Access is Denied’ error message.

With the text file open, you can now edit the default new script.

I deleted the comment lines because they were unnecessary and felt too cluttered. As I get more experienced and see what functions I use frequently in a project, I can tweak it further and save some time.

Current Progress Status

  • Tower Defense Tutorial: 47/73 -> Health Bar Tutorial: Completed
  • Unity in Action (Pg 336 of 352)

Onward!

Advertisement
%d bloggers like this: