Class Node_GD_CB_Extension
- Namespace
- Godot
- Assembly
- com.cobilas.godot.utility.dll
public static class Node_GD_CB_Extension
- Inheritance
-
Node_GD_CB_Extension
- Inherited Members
Methods
FindNodeByName(Node, string)
Get a node from name.
By default, the method looks for a node of type node.(Type typeNode = typeof(Godot.Node))
By default, the method searches recursively.(bool recusive = true)
public static Node? FindNodeByName(this Node N, string name)
Parameters
N
Nodename
stringThe node name
Returns
- Node
FindNodeByName(Node, string, bool)
Get a node from name.
By default, the method looks for a node of type node.(Type typeNode = typeof(Godot.Node))
public static Node? FindNodeByName(this Node N, string name, bool recusive)
Parameters
Returns
- Node
FindNodeByName(Node, string, Type, bool)
Get a node from name.
public static Node? FindNodeByName(this Node N, string name, Type typeNode, bool recusive)
Parameters
N
Nodename
stringThe node name
typeNode
TypeThe type to look for.
recusive
boolAlso look for your children.
Returns
- Node
FindNodeByName<T>(Node, string)
Get a node from name.
By default, the method searches recursively.(bool recusive = true)
public static T FindNodeByName<T>(this Node N, string name) where T : Node
Parameters
N
Nodename
stringThe node name
Returns
- T
Type Parameters
T
FindNodeByName<T>(Node, string, bool)
Get a node from name.
public static T FindNodeByName<T>(this Node N, string name, bool recusive) where T : Node
Parameters
Returns
- T
Type Parameters
T
The type to look for.
FindNodes(Node, Type)
Get the nodes from a type.
By default, the method searches recursively.(bool recusive = true)
public static Node[] FindNodes(this Node N, Type typeNode)
Parameters
N
NodetypeNode
TypeThe type to look for.
Returns
- Node[]
Returns a list of nodes.
FindNodes(Node, Type, bool)
Get the nodes from a type.
public static Node[] FindNodes(this Node N, Type typeNode, bool recusive)
Parameters
Returns
- Node[]
Returns a list of nodes.
FindNodes<T>(Node)
Get the nodes from a type.
By default, the method searches recursively.(bool recusive = true)
public static T[] FindNodes<T>(this Node N) where T : Node
Parameters
N
Node
Returns
- T[]
Returns a list of nodes.
Type Parameters
T
The type to look for.
FindNodes<T>(Node, bool)
Get the nodes from a type.
public static T[] FindNodes<T>(this Node N, bool recusive) where T : Node
Parameters
N
Noderecusive
boolAlso look for your children.
Returns
- T[]
Returns a list of nodes.
Type Parameters
T
The type to look for.
GetNodePosition(Node)
public static Vector3D GetNodePosition(this Node N)
Parameters
N
Node
Returns
GetNodeRotation(Node)
public static Vector3D GetNodeRotation(this Node N)
Parameters
N
Node
Returns
GetNodeScale(Node)
public static Vector3D GetNodeScale(this Node N)
Parameters
N
Node
Returns
Print(Node, params object[])
public static void Print(this Node N, params object[] args)
Parameters
N
Nodeargs
object[]
SetNodePosition(Node, Vector3D)
public static void SetNodePosition(this Node N, Vector3D position)
Parameters
N
Nodeposition
Vector3D
SetNodeRotation(Node, Vector3D)
public static void SetNodeRotation(this Node N, Vector3D rotation)
Parameters
N
Noderotation
Vector3D
SetNodeScale(Node, Vector3D)
public static void SetNodeScale(this Node N, Vector3D scale)
Parameters
N
Nodescale
Vector3D