core.model.load

Shared

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


Syntax

local status = core.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, false otherwise

Formats

FormatExtensionDescription
GLB.glbSelf contained binary GLTF asset

Examples

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

On this page