Creating a C# script file
We are now ready to create a new C# file in our learning project:
- Create a new Unity project and name it
Learning Project
. - Right-click on the Project tab and create a folder named
Scripts
. - Right-click on the
Scripts
folder, as shown in the following screenshot, and create a C# script: - Immediately rename
NewBehaviourScript
toLearningScript
.
We have created the Scripts
folder, which we will be using to organize our C# files. This folder will contain all of our Unity script files. We have also used Unity to create a C# script file named LearningScript.cs
.