ModelComponentData interface
Data specification for ModelComponent, see ComponentManager.create() on how to create a component
Signature:
export interface ModelComponentData extends Component3DData
Extends: Component3DData
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
Record<string, boolean> |
(Optional) An object containing the names of the animations to play at start. | ||
boolean |
(Optional) Enable the animation system for this model. Defaults to false, works only on model that embeds animations | ||
boolean |
(Optional) Enable real time shadows for this model. Defaults to false | ||
string |
(Optional) if not provided, an auto id will be generated | ||
string |
(Optional) name for the component. Defaults to "" | ||
number |
(Optional) Set the opacity of the model. Defaults to 1 | ||
(Optional) Position of the component in the space. Defaults to {x: 0, y: 0, z: 0} | |||
RenderMode |
(Optional) Model render mode. Defaults to "default" | ||
(Optional) Rotation of the component in the space. Defaults to {x: 0, y: 0, z: 0} | |||
(Optional) Scale of the component in the space. Defaults to {x: 1, y: 1, z: 1} | |||
"model" | |||
string |
url of the gltf/glb file | ||
boolean |
(Optional) Use transparency on the model. Defaults to true |