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)
你有任何问题,或者需要我们帮你开发,请扫码联系
X