class_nodepath - dragonsoulz/godot GitHub Wiki

NodePath

####Category: Built-In Types

Brief Description

Built-in type optimized for path traversing.

Member Functions

Description

Built-in type optimized for path traversing. A Node path is an optimized compiled path used for traversing the scene tree. It references nodes and can reference properties in that node, or even reference properties inside the resources of the node.

Member Function Description

get_name

Return a path level name.

get_name_count

  • int get_name_count ( )

Return the path level count.

get_property

Return the property associated (empty if none).

get_subname

Return the subname level name.

get_subname_count

  • int get_subname_count ( )

Return the subname count.

is_absolute

  • bool is_absolute ( )

Return true if the node path is absolute (not relative).

is_empty

Return true if the node path is empty.