ModelEntity
The ModelEntity class is a lightweight wrapper around Entity designed specifically to handle preloaded assets and game models.
ModelEntity
Extends Entity.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
wasPreloaded | boolean | false | Indicates whether this model has been preloaded. |
Methods
preload()
ts
function preload(): voidMarks the model entity as having been preloaded by setting wasPreloaded to true.
reset()
ts
function reset(): voidResets the model entity by detaching it from its parent (setParent(null)).