Table of Contents

Class NodePath_GD_CB_Extension

Namespace
Godot
Assembly
com.cobilas.godot.utility.dll

Extensions for Godot.NodePath class.

public static class NodePath_GD_CB_Extension
Inheritance
NodePath_GD_CB_Extension
Inherited Members

Methods

GetNode(NodePath?)

Fetches a node. The NodePath can be either a relative path (from the current node) or an absolute path (in the scene tree) to a node.

public static Node GetNode(this NodePath? np)

Parameters

np NodePath

Godot.NodePath from where the node will be obtained.

Returns

Node

returns the node that was obtained from the Godot.NodePath.

GetNode<T>(NodePath?)

Fetches a node. The NodePath can be either a relative path (from the current node) or an absolute path (in the scene tree) to a node.

public static T GetNode<T>(this NodePath? np) where T : Node

Parameters

np NodePath

Godot.NodePath from where the node will be obtained.

Returns

T

returns the node that was obtained from the Godot.NodePath.

Type Parameters

T

Hash(NodePath?)

Hash the Godot.NodePath and return a 32 bits unsigned integer.

public static uint Hash(this NodePath? np)

Parameters

np NodePath

Godot.NodePath to be calculated.

Returns

uint

The calculated hash of the Godot.NodePath.

Exceptions

ArgumentNullException

Occurs when the np parameter is null!

StringHash(NodePath?)

Hash the string and return a 32 bits unsigned integer.

public static string StringHash(this NodePath? np)

Parameters

np NodePath

Godot.NodePath to be calculated.

Returns

string

The calculated hash of the string.

Exceptions

ArgumentNullException

Occurs when the np parameter is null!