Appearance
@tmrw-realityos/world • Docs
@tmrw-realityos/world / BaseComponent
Class: abstract
BaseComponent
Base class for components
Extended by
Constructors
new BaseComponent()
new BaseComponent():
BaseComponent
Returns
Properties
enabled
enabled:
boolean
=true
Defined in
mustSave
mustSave:
boolean
=true
Defined in
parent?
optional
parent:ComponentsContainer
Defined in
uid
uid:
string
=""
Defined in
compName
static
compName:string
="unknown"
Defined in
Accessors
entity
get
entity():undefined
|Entity
set
entity(_v
):void
Parameters
• _v: Entity
Returns
undefined
| Entity
Defined in
Methods
configure()
abstract
configure(_o
):void
Parameters
• _o: unknown
Returns
void
Defined in
getCompName()
getCompName():
string
Returns
string
Defined in
onAdded()?
optional
onAdded():void
Returns
void
Defined in
onClick()?
optional
onClick():void
Returns
void
Defined in
onRemoved()?
optional
onRemoved():void
Returns
void
Defined in
onUpdate()?
optional
onUpdate(dt
):void
Parameters
• dt: number
Returns
void
Defined in
serialize()
serialize():
void
Returns
void