December 2019
Intermediate to advanced
388 pages
8h 11m
English
Scripts, which are actually a type of component, are an essential part of Unity since they define the behavior of the different elements in the project. You can manipulate (add/edit/delete) a script like any other component.
Right-click on the Project window and press Create|C# Script to create a new script and give it a name (for example, CubeHandler.cs):

In the Inspector window, you'll see that the newly created script has some default code in it. We'll talk about this code in the next section. Now that we have knowledge about the different elements of unity, let's learn to script in the following section.