Skip to main content

eva.js.gameobject

Home > @eva/eva.js > GameObject

GameObject class

Signature:
declare class GameObject 

Constructors

ConstructorModifiersDescription
(constructor)(name, obj)Constructs a new instance of the GameObject class

Properties

PropertyModifiersTypeDescription
componentsComponent<ComponentParams>[]
idnumber
namestring
parentGameObject
sceneScene
transformTransform

Methods

MethodModifiersDescription
addChild(gameObject)
addComponent(C)
addComponent(C, obj)
destroy()
getComponent(c)
getComponent(c)
remove()
removeChild(gameObject)
removeComponent(c)
removeComponent(c)
removeComponent(c)