Class Scene

The Scene contains a list of all objects that should be drawn at a given time.

Inherits from

  • Object (base class)

Constructors

Name Description
this

Fields

Name Type Description
camera Camera The camera to render with.

Properties

Name Type Description
objects [get] GameObject[] Gets all objects in the scene.
root [get] GameObject

Methods

Name Description
addChild Adds object to the children, adds it to the scene graph.
clear Remove all objects from the collection.
draw Draws all objects in the scene.
loadObjects Load all objects inside the specified folder in FilePath.Objects.
opIndex Gets the object in the scene with the given name.
opIndex Gets the object in the scene with the given id.
refresh Refreshes all objects in the scene that need refreshing.
removeChild Removes the given object as a child from this scene.
update Updates all objects in the scene.

Authors

Copyright

License