Skip to main content
Blank scripts let you organize your code into small, focused modules that can be reused across multiple scripts. They’re ideal for math helpers, geometry utilities, color functions, or any logic that should be broken out into its own script.

Creating a blank Script

Create a new script and select Blank as the type.
Usage:

Blank Scripts with custom types

Custom types defined in your Blank scripts will automatically be accessible in the parent script.
Usage:

Requiring scripts in folders

When you put a script in a folder in the Assets Panel, the folder path becomes the script’s namespace. Select the script to see its Namespace in the Inspector. A script’s full module name is its namespace and name joined with /. Use the full module name when you require it. For example, a script named Vector inside a Math folder inside a Utils folder is required like this:
A script that isn’t in a folder has no namespace, so you require it by its name alone. Moving a script to a different folder, or renaming a folder it’s in, changes its module name.