Click or drag to resize
GameScene Class
A game scene object.
Inheritance Hierarchy
SystemObject
  GeonBit.ECSGameScene

Namespace:  GeonBit.ECS
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class GameScene

The GameScene type exposes the following members.

Constructors
  NameDescription
Public methodGameScene
Init the scene.
Top
Properties
  NameDescription
Public propertyActiveCamera
Shortcut to get the currently active camera.
Public propertyPhysics
Get the physical world instance.
Public propertyRoot
Root GameObject (most top level GameObject in the tree).
Top
Methods
  NameDescription
Public methodActivate
Activate the scene, this will update root node, camera, and invoke 'spawn' and 'load' events. You do not need to call this function yourself, it is used internally.
Public methodBeforeDraw
Called to update stuff right before drawing scene. You do not need to call this function yourself, it is used internally.
Public methodDeactivate
Deactivate the scene and invoke the 'unload' events. You do not need to call this function yourself, it is used internally.
Public methodDestroy
Destroy this scene. After calling this, it cannot be used again. Also, don't call this on the currently active scene.
Public methodDraw
Draw the scene. You do not need to call this function yourself, it is used internally.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFixedUpdate
Triggers a Fixed Update event (update that happens every const amount of seconds).
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad
Make this scene the currently loaded scene.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Called every frame to do GameObject events. You do not need to call this function yourself, it is used internally.
Top
Fields
  NameDescription
Public fieldStatic memberDebugRenderPhysics
If true, will draw physics debug.
Public fieldLights
Lights manager of this scene. If you want to use a custom lights manager class you can override this object, just be sure to do this before loading the scene.
Public fieldUserInterface
User interface for this scene.
Top
See Also