Appearance
@tmrw-realityos/world • Docs
@tmrw-realityos/world / Components / InteractiveObject
Class: InteractiveObject
Interactive object component
Extends
Constructors
new InteractiveObject()
new InteractiveObject():
InteractiveObject
Returns
Overrides
Defined in
world/components/interactiveObject.ts:11
Properties
enabled
enabled:
boolean
=true
Inherited from
Defined in
mustSave
mustSave:
boolean
=true
Inherited from
Defined in
parent?
optional
parent:ComponentsContainer
Inherited from
Defined in
uid
uid:
string
=""
Inherited from
Defined in
compName
static
compName:string
="InteractiveObject"
Overrides
Defined in
world/components/interactiveObject.ts:9
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/interactiveObject.ts:25
getCompName()
getCompName():
string
Returns
string
Inherited from
Defined in
onAdded()?
optional
onAdded():void
Returns
void
Inherited from
Defined in
onClick()?
optional
onClick():void
Returns
void
Inherited from
Defined in
onRemoved()?
optional
onRemoved():void
Returns
void
Inherited from
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
world/components/interactiveObject.ts:16
serialize()
serialize():
void
Returns
void