Avatarcomponentdata

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

ignoreLOD?

boolean

(Optional) Do not use LOD optimization

image?

string

(Optional) image of the avatar.

name?

string

(Optional) name for the component. Defaults to ""

opacity

number

Set the opacity of the avatar default is 1

picture?

string

(Optional) url of a picture to display on top the avatar.

plugins?

[]

(Optional) Plugins to use with the avatar. Defaults to []

position?

XYZ

(Optional) Position of the component in the space. Defaults to {x: 0, y: 0, z: 0}

renderMode?

RenderMode

(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