model.load
Shared
Loads a model from a file path into memory under a given name
Syntax
local status = model.load(
name,
path
)Parameters
| Type | Name | Description |
|---|---|---|
string | name | Name to register the model under |
string | path | File path to a supported model asset Refer Formats section |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Formats
| Format | Extension | Description |
|---|---|---|
| GLB | .glb | Self contained binary GLTF asset |
Examples
model.load("character", "models/character.glb")