SceneGraph
A class for creating a scene graph of nodes.
Author
Colton Daily
Parameters
the current context
the viewport that the camera of the scene graph will own
an option sprite batch. If omitted, the scene graph will create and manage its own.
the input signals mapped to the UI input of type InputType.
the input map controller for the scene graph
a white 1x1 pixel TextureSlice that is used for rendering with ShapeRenderer.
Constructors
Types
Functions
Invoked when a GameButton is initially pressed on a GamepadInfo.
Invoked when a GameButton is released on a GamepadInfo.
Invoked when a GameStick is moved on a GamepadInfo.
Invoked when a GameButton that is considered a trigger is changed / moved.
Initializes the root Node and InputProcessor. This must be called before an update or render calls.
Lifecycle method. This is called whenever the SceneGraph is set before initialize is called. Any nodes added to this Node context won't be added until the next frame update.
Removes the node from the root.
Invoked when the mouse is moved.
Adds the new to the root.
Releases any current keyboard focus.
Request a Control to receive keyboard focus.
Resizes the internal graph's OrthographicCamera and CanvasLayer.
Properties
The fixed progression lerp ratio for fixed updates. This is used for rendering nodes that use Node.fixedUpdate for movement / physics logic.
The interval for Node.fixedUpdate to fire. Defaults to 30
times per second.
The root ViewportCanvasLayer that is used for rendering all the children in the graph. Do not add children directly to this node. Instead, add children to the root node.
This is the true current value if debugging is rendering. To change this value see requestShowDebugInfo.
Extensions
Adds a Button to the current SceneGraph.root as a child and then triggers the callback
Adds a Camera2D to the current SceneGraph.root as a child and then triggers the Camera2D
Adds a Camera3D to the current SceneGraph.root as a child and then triggers the Camera3D
Adds a CanvasLayer to the current SceneGraph.root as a child and then triggers the CanvasLayer
Adds a CenterContainer to the current SceneGraph.root as a child and then triggers the callback
Adds a VBoxContainer to the current SceneGraph.root as a child and then triggers the callback
Adds a Container to the current SceneGraph.root as a child and then triggers the callback
Adds a Control to the current SceneGraph.root as a child and then triggers the callback
Adds a DirectionalLight to the current SceneGraph.root as a child and then triggers the DirectionalLight
Adds a FrameBufferContainer to the current SceneGraph.root as a child and then triggers the callback
Adds a HBoxContainer to the current SceneGraph.root as a child and then triggers the callback
Adds a HScrollBar to the current SceneGraph.root as a child and then triggers the callback
Adds a Label to the current SceneGraph.root as a child and then triggers the callback
Adds a LineEdit to the current SceneGraph.root as a child and then triggers the callback
Adds a MeshNode to the current SceneGraph.root as a child and then triggers the MeshNode
Adds a NinePatchRect to the current SceneGraph.root as a child and then triggers the callback
Adds a Node to the current SceneGraph.root as a child and then triggers the Node
Adds a Node to the current SceneGraph.root as a child and then triggers the Node. This can be used for classes that extend node that perhaps they don't have a DSL method to initialize it.
Adds a Node2D to the current SceneGraph.root as a child and then triggers the Node2D
Adds a Node3D to the current SceneGraph.root as a child and then triggers the Node3D
Adds a PaddedContainer to the current SceneGraph.root as a child and then triggers the callback
Adds a Panel to the SceneGraph.root as a child and then triggers the callback
Adds a PanelContainer to the SceneGraph.root as a child and then triggers the callback
Adds a ProgressBar to the current SceneGraph.root as a child and then triggers the callback
Adds a HBoxContainer to the current SceneGraph.root as a child and then triggers the callback
Adds a ScrollContainer to the current SceneGraph.root as a child and then triggers the callback
Adds a TextureProgress to the current SceneGraph.root as a child and then triggers the callback
Adds a TextureRect to the SceneGraph.root as a child and then triggers the callback
Adds a VBoxContainer to the current SceneGraph.root as a child and then triggers the callback
Adds a ViewportCanvasLayer to the current SceneGraph.root as a child and then triggers the ViewportCanvasLayer
Adds a VScrollBar to the current SceneGraph.root as a child and then triggers the callback