ModelComponent class
Model component, used to display gltf 3D models in the game (.gltf, .glb)
See ModelComponentData for the data schema used to create a model component
Signature:
export declare class ModelComponent extends Component3D<ModelComponentData>
Extends: Component3D<ModelComponentData>
Remarks
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ModelComponent
class.
Methods
Method | Modifiers | Description |
---|---|---|
getBBox(target) | see Component3D.getBBox() | |
play(name) | Play an animation on the 3D model. This applies only to animated gltf models containing animations. | |
stop(name) | Stop an animation on the 3D model | |
updateRenderMode(mode) |