GBObjectUtils

Gets a readable display name...

sort Weight: 10

Gets a readable display name for a Node, with optional fallback and custom callable. [code]node[/code]: [i]Node[/i] - Node to get display name for (can be null) [code]missing_name[/code]: [i]String[/i] - Value to return when node is null or name missing [code]custom_callable[/code]: [i]Callable[/i] - Optional callable that receives the node and returns a String

Version: v5.0.0

STABLE

Inherits: RefCounted
Source: gb_object_utils.gd
Parsing: AST-based for maximum accuracy with symbol typing


Methods

get_script_or_base_class_name

Signature: static get_script_or_base_class_name(p_check: Object) -> String

p_check: Object - The object to inspect for script information

Returns: String

Static: true

Parameters:

  • p_check: Object

get_object_display_name

Signature: static get_object_display_name(obj: Object) -> String

obj: Object - The object to get display name from

Returns: String

Static: true

Parameters:

  • obj: Object

get_display_name

Signature: static get_display_name(node: Node, missing_name: String = "<none>") -> String

custom_callable: Callable - Optional callable that receives the node and returns a String

Returns: String

Static: true

Parameters:

  • node: Node
  • missing_name: String (optional, default: "<none>")