Script Creation
Last updated
Last updated
Creating Scripts
As mentioned earlier, Force uses scripts written in the C# programming language. Syntactically, it is very similar to Java and C++, and even simpler, so if you have already worked with similar languages before, you will have to adapt very much to the Force scripting system, and if not, I recommend learning the basics of the language first and then start writing scripts.
So creating scripts. To create a new script, like other assets go to Assets Browser -> + button or you can click LMB on blank space to open context popup.
Then in opened dialog select Script:
After than you go to Create New Script menu:
Enter the name of script and if you wanna can also enter the namespace of the script, and click Create. After each new script creation Force will rebuild script project. And then this script file appears in Assets Browser. Script files will have special icon to determine it from other assets.