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 |
---|---|---|---|
animation? | string | (Optional) animation to play on the avatar by default when it loads. | |
id? | string | (Optional) if not provided, an auto id will be generated | |
image? | string | (Optional) image of the avatar. | |
name? | string | (Optional) name for the component. Defaults to "" | |
picture? | string | (Optional) url of a picture to display on top the avatar. | |
position? | XYZ | (Optional) Position of the component in the space. Defaults to {x: 0, y: 0, z: 0} | |
renderMode? | "default" | "toon" | "glitch" | "ghost" | (Optional) Model render mode. Defaults to "default" | |
rotation? | XYZ | (Optional) Rotation of the component in the space. Defaults to {x: 0, y: 0, z: 0} | |
scale? | XYZ | (Optional) Scale of the component in the space. Defaults to {x: 1, y: 1, z: 1} | |
text? | string | (Optional) text to display on top the avatar. Defaults to "". | |
type | "avatar" | ||
url | string | url of the vrm file | |
urlCompressed? | string | (Optional) url of the vrm file | |
useMixer? | boolean | (Optional) Use CPU Animation |