-
Notifications
You must be signed in to change notification settings - Fork 0
SceneTree
Namespace: Electron2D
Represents the scene tree type.
public class Electron2D.SceneTree : Electron2D.ObjectThis type is part of the Electron2D 0.1.0 Preview public API.
Instances of this type are not synchronized. Access them from the thread that owns the object unless the member documentation states otherwise.
This API is available since Electron2D 0.1.0 Preview.
| Member | Kind | Summary |
|---|---|---|
CurrentScene |
Property | Gets or sets the current scene value. |
DebugCollisionsHint |
Property | Gets or sets whether collision shapes should be exposed to debug visualization. |
Root |
Property | Gets the root value. |
Electron2D.SceneTree() |
Constructor | Initializes a new instance of the SceneTree type. |
CallGroup(System.String, System.String, System.Object[]) |
Method | Executes the call group operation. |
ChangeSceneToPacked(Electron2D.PackedScene) |
Method | Executes the change scene to packed operation. |
CreateTween() |
Method | Creates a tween processed by this scene tree. |
GetFirstNodeInGroup(System.String) |
Method | Gets the first node in group value. |
GetNodeCountInGroup(System.String) |
Method | Gets the node count in group value. |
GetNodesInGroup(System.String) |
Method | Gets the nodes in group value. |
HasGroup(System.String) |
Method | Checks whether group is available. |
Kind: Property
public Electron2D.Node CurrentScene { get; }Gets or sets the current scene value.
This property follows the validation and lifetime rules of its declaring type.
The current current scene value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.SceneTree
Kind: Property
public System.Boolean DebugCollisionsHint { get; set; }Gets or sets whether collision shapes should be exposed to debug visualization.
This property does not draw anything by itself. It enables the internal managed snapshot used by the editor viewport and automated diagnostics.
The snapshot intentionally contains scene nodes and geometry data only; it does not expose backend handles or native pointers.
true to enable internal collision shape snapshots for editor and
diagnostics tools; otherwise, false.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.CollisionShape2D.DebugColor
Kind: Property
public Electron2D.Node Root { get; }Gets the root value.
This property follows the validation and lifetime rules of its declaring type.
The current root value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.SceneTree
Kind: Constructor
public Electron2D.SceneTree()Initializes a new instance of the SceneTree type.
The new instance follows the lifetime and validation rules of its declaring type.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.SceneTree
Kind: Method
public System.Void CallGroup(System.String, System.String, System.Object[])(System.String group, System.String method, System.Object[] args)Executes the call group operation.
This method follows the validation and lifetime rules of its declaring type.
-
group: The group value. -
method: The method value. -
args: The args value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.SceneTree
Kind: Method
public Electron2D.Error ChangeSceneToPacked(Electron2D.PackedScene)(Electron2D.PackedScene packedScene)Executes the change scene to packed operation.
This method follows the validation and lifetime rules of its declaring type.
-
packedScene: The packed scene value.
The result of the operation.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.SceneTree
Kind: Method
public Electron2D.Tween CreateTween()()Creates a tween processed by this scene tree.
The returned tween is advanced during Electron2D.SceneTree.ProcessFrame(System.Double)
after node process callbacks and before draw callbacks. Add tweeners to
it with Electron2D.Tween.TweenProperty(Electron2D.Object,Electron2D.NodePath,Electron2D.Variant,System.Double),
Electron2D.Tween.TweenInterval(System.Double) or
Electron2D.Tween.TweenCallback(Electron2D.Callable).
A tween created this way remains valid until it completes,
Electron2D.Tween.Kill is called, or the tween is otherwise removed
from the scene tree processing list.
A valid Electron2D.Tween instance that starts in the running state.
This method is not synchronized. Call it on the main scene thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.Node.CreateTweenElectron2D.Tween
Kind: Method
public Electron2D.Node GetFirstNodeInGroup(System.String)(System.String group)Gets the first node in group value.
This method follows the validation and lifetime rules of its declaring type.
-
group: The group value.
The current first node in group value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.SceneTree
Kind: Method
public System.Int32 GetNodeCountInGroup(System.String)(System.String group)Gets the node count in group value.
This method follows the validation and lifetime rules of its declaring type.
-
group: The group value.
The current node count in group value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.SceneTree
Kind: Method
public Electron2D.Node[] GetNodesInGroup(System.String)(System.String group)Gets the nodes in group value.
This method follows the validation and lifetime rules of its declaring type.
-
group: The group value.
The current nodes in group value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.SceneTree
Kind: Method
public System.Boolean HasGroup(System.String)(System.String name)Checks whether group is available.
This method follows the validation and lifetime rules of its declaring type.
-
name: The name value.
true when the condition is met; otherwise, false.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.SceneTree
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.