AvatarComponentData interface
Data specification for AvatarComponent, see ComponentManager.create() on how to create a component
Signature:
export interface AvatarComponentData extends Component3DData
Extends: Component3DData
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
string |
(Optional) animation to play on the avatar by default when it loads. | ||
string |
(Optional) if not provided, an auto id will be generated | ||
boolean |
(Optional) Do not use LOD optimization | ||
string |
(Optional) image of the avatar. | ||
string |
(Optional) name for the component. Defaults to "" | ||
number |
Set the opacity of the avatar default is 1 | ||
string |
(Optional) url of a picture to display on top the avatar. | ||
[] |
(Optional) Plugins to use with the avatar. Defaults to [] | ||
(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} | |||
string |
(Optional) text to display on top the avatar. Defaults to "". | ||
"avatar" | |||
string |
url of the vrm file | ||
string |
(Optional) url of the vrm file | ||
boolean |
(Optional) Use CPU Animation |