Working with C# script files

Until you learn some basic programming concepts, it's too early to study how scripts work, but we still need to know how to create one.

There are several ways to create a script file using Unity:

  • In the menu navigate to Assets | Create | C# Script

    Or

  • In the Project tab navigate to Create | C# Script

    Or

  • In the Project tab right-click , from the pop-up menu navigate to Create | C# Script

    Note

    From now on, when I tell you to create a C# script, please use which ever method you prefer.

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.