Even though we haven't covered any basic programming concepts yet, they won't have a home until we know how to create an actual C# script in Unity.Â
There are several ways to create C# scripts from the editor:
- Select Assets | Create | C# Script.
- In the Project tab, select Create | C# Script.
- Right-click in the Project tab (on the right-hand side) and select Create | C# Script from the pop-up menu.
- Select a GameObject in the Hierarchy window and click Add Component | New Script.
Going forward, whenever you're instructed to create a C# script, please use whichever method you prefer.
Resources and objects other than C# scripts can be created in the editor using the preceding methods. I'm not going to call out each of these variations every time we create something new, so just keep the options in the back of your mind.
For the sake of organization...