eva.js.component
Home > @eva/eva.js > Component
Component class
Signature:declare class Component<T extends ComponentParams = {}> extends EventEmitter
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(params) | Constructs a new instance of the Component class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
__componentDefaultParams | T | ||
componentName | static | string | |
gameObject | GameObject | ||
name | string | ||
started | boolean |
Methods
Method | Modifiers | Description |
---|---|---|
awake()? | (Optional) | |
init(params)? | (Optional) | |
lateUpdate(frame)? | (Optional) | |
onDestroy()? | (Optional) | |
onPause()? | (Optional) | |
onResume()? | (Optional) | |
start()? | (Optional) | |
update(frame)? | (Optional) |