struct Godot::NodePath

Overview

Unary tilde operator on NodePath: ~(node_path!("MyNode"))

Defined in:

libgodot/node_context.cr
libgodot/object.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path : String = "") #

def self.new(pointer : Pointer(Void)) #

Instance Method Detail

def ==(other : NodePath) : Bool #

def ==(other : String) : Bool #

def ~ : Godot::Node #

def empty? : Bool #

def get_subname(idx : Int64) : String #

Returns the subname at the given index


def get_subname_count : Int64 #

Returns the subname count (number of colon-separated property paths after node)


def path : String #

def path=(path : String) #

def to_s(io : IO) : Void #
Description copied from struct Struct

Same as #inspect(io).


def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.