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.

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

UB.utils.import("models/bricks.js");

See all methods of the api.