Creating a C# script file

We are now ready to create a new C# file in our learning project:

  1. Create a new Unity project and name it Learning Project.
  2. Right-click on the Project tab and create a folder named Scripts.
  3. Right-click on the Scripts folder, as shown in the following screenshot, and create a C# script:
    Creating a C# script file
  4. Immediately rename NewBehaviourScript to LearningScript.

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.

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

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