Click or drag to resize
GameObject Methods

The GameObject type exposes the following members.

Methods
  NameDescription
Public methodAddComponent
Add a component to this GameObject instance.
Public methodAddComponentDebug
Add a component to this GameObject instance, but only if in debug mode. If not in debug mode, will do nothing.
Public methodBeforeDraw
Called every frame to do updates right before drawing scene.
Public methodCallCollisionEnd
Called when the Game Object stop colliding with another object.
Public methodCallCollisionProcess
Called every frame while the Game Object is colliding with another object.
Public methodCallCollisionStart
Called when the Game Object start colliding with another object.
Public methodCallSpawnEvent
Spawn event is something that should be called once after the game object is ready with all components.
Public methodClone
Clone this game object.
Public methodStatic memberCreateOctree
Create an octree object with params.
Public methodDestroy
Destroy this Game Object.
Public methodDoOnUpdate
Register a function to call on every update loop. This is a quick method to add per-object functionality without defining a component type.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFind
Find a child GameObject.
Public methodFixedUpdate
Triggers a Fixed Update event (update that happens every const amount of seconds).
Public methodGetComponentCompType
Get component by type / name.
Public methodGetComponentsCompType
Get all components by type / name.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHeartbeat
Trigger a heartbeat event.
Public methodRemoveComponent
Remove a component from this GameObject instance.
Public methodSendMessage
Invoke the 'OnReceiveMessage' callback of all the components of this entity. Note: this is used mostly for communication between user scripts.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTrigger
Iterate over all the components and call 'methodName()', if such method exists.
Public methodUpdate
Called every frame to do GameObject events.
Top
See Also