import(fileName) , method of utils

Import a script by running it once and once only.

Successive calls to import with the same argument has no effect. You can use such scripts for initialization or providing library functions.

name type description
fileName string name of the file, must be relative to the project root
// import a file into the game


See all methods of the api.