Add a new script

Create a new script

In the project directory, right-click in the directory where you want to create the script (It’s strongly advised that you make a directory called “Scripts” to get the best of it).

Select “Create”, then select the desired language (c#, javascript).

Then give the wanted name to your script.

 

Just double-click on the script to open it with your prefered editor, and just drag & drop the file onto a gameObject to attach the script to it.

Leave a Reply