Model
model.create
Shared
Creates a model instance from a previously loaded model
Syntax
local entity = model.create(name)Parameters
| Type | Name | Description |
|---|---|---|
string | name | Name of the loaded model to instantiate |
Returns
| Type | Name | Description |
|---|---|---|
model | instance | Created model instance |
Examples
model.load("character", "models/character.glb")
local entity = model.create("character")