AvatarComponent class
Avatar component, used to display VRM avatars in the game (for more info on VRM files, see VRM site (opens in a new tab))
See AvatarComponentData for the data schema used to create an audio component
Signature:
export declare class AvatarComponent extends Component3D<AvatarComponentData> Extends: Component3D<AvatarComponentData>
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 AvatarComponent class.
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
any | |||
|
any | |||
|
|
{} | ||
|
string |
animation to play on the avatar by default when it loads. | ||
|
number |
get the scale of the avatar vrm | ||
|
boolean |
Do not use LOD optimization | ||
|
number |
Set the opacity of the avatar default is 1 | ||
|
string |
url of a picture to display on top the avatar. | ||
|
RenderMode |
Model render mode. Defaults to "default" | ||
|
string |
text to display on top the avatar. Defaults to "". | ||
|
string |
url of the vrm file | ||
|
boolean |
Use CPU Animation | ||
|
boolean | |||
|
|
string |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
| ||
|
| ||
|
| ||
|
| ||
|
the render mode of the avatar component | ||
|
the plugins of the avatar component | ||
|
the render mode of the avatar component | ||
|
Updates the vrm displayed by the avatar component |