model.load

Shared

Loads a model from a file path into memory under a given name


Syntax

local status = model.load(
    name,
    path
)

Parameters

TypeNameDescription
stringnameName to register the model under
stringpathFile path to a supported model asset
Refer Formats section

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Formats

FormatExtensionDescription
GLB.glbSelf contained binary GLTF asset

Examples

Load a model from a GLB file
model.load("character", "models/character.glb")

On this page