Vital.sandbox
Model

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 of the model to load

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

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

On this page