Appearance
@tmrw-realityos/world • Docs
@tmrw-realityos/world / Components / Avatar
Class: Avatar
Avatar component
Extends
Constructors
new Avatar()
new Avatar():
Avatar
Returns
Overrides
Defined in
Properties
enabled
enabled:
boolean
=true
Overrides
Defined in
feedURL
feedURL:
string
=""
Defined in
height
height:
number
=1
Defined in
material
material:
Material
Defined in
mustSave
mustSave:
boolean
=true
Inherited from
Defined in
parent?
optional
parent:ComponentsContainer
Inherited from
Defined in
plane
plane:
Node
Defined in
profileURL
profileURL:
string
=""
Defined in
size
size:
number
=0.25
Defined in
uid
uid:
string
=""
Inherited from
Defined in
user?
optional
user:Entity
=undefined
Defined in
compName
static
compName:string
="Avatar"
Overrides
Defined in
emissiveFactor
static
emissiveFactor:vec3
Defined in
Accessors
entity
get
entity():undefined
|Entity
set
entity(_v
):void
Parameters
• _v: Entity
Returns
undefined
| Entity
Inherited from
Defined in
Methods
configure()
configure():
void
Returns
void
Overrides
Defined in
world/components/avatar.ts:108
getCompName()
getCompName():
string
Returns
string
Inherited from
Defined in
onAdded()
onAdded():
void
Returns
void
Overrides
Defined in
onClick()?
optional
onClick():void
Returns
void
Inherited from
Defined in
onRemoved()
onRemoved():
void
Returns
void
Overrides
Defined in
onUpdate()?
optional
onUpdate(dt
):void
Parameters
• dt: number
Returns
void
Inherited from
Defined in
preRender()
preRender(
cam
):void
Parameters
• cam: Camera
Returns
void
Defined in
serialize()
serialize():
void
Returns
void
Inherited from
Defined in
setEmissiveFactor()
static
setEmissiveFactor(v
):void
Parameters
• v: number
| vec3
Returns
void