Latite Scripting Documentation (Exports)
Function
require<K>(library:
K):EngineLibraries[K]
Load a specified library.
Source: script.d.ts:17
| Parameter |
|---|
K extends keyof EngineLibraries |
| Parameter | Type | Description |
|---|---|---|
| library | K |
The Latite Scripting engine built-in library. |
require(path:
string):any
Load and run a specified JavaScript module. This returns whatever is in exports or module.exports of the JavaScript module.
Source: script.d.ts:23
| Parameter | Type | Description |
|---|---|---|
| path | string |
The path to load the JavaScript file. |
any