Time for action – create a C# script file
As our Unity project progresses, we will have several folders to organize and store all of our C# files.
- Create a new Unity project and name it as
State Machine
. - Right-click on in the Project tab and create a folder named
Code
. - Right-click on the
Code
folder and a create a folder namedScripts
. - In the
Scripts
folder, create aC# Script
. - Immediately rename
NewBehaviourScript
toLearningScript
.
What just happened?
We created one of the Code
subfolders, named Scripts
, that we will be using to organize our C# files. This folder will contain all of our Unity script files. Later we will create other C# file folders. ...
Get Learning C# by Developing Games with Unity 3D Beginner's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.