GBObjectUtils

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Utility helpers for object introspection and display names.

Source File: addons/grid_building/utils/gb_object_utils.gd

Public Methods

get_script_or_base_class_name

1
get_script_or_base_class_name(p_check: Object) -> String

Flags: static

Finds the script name on the script attached to an object if one exists.

p_check: Object - The object to inspect for script information


get_object_display_name

1
get_object_display_name(obj: Object) -> String

Flags: static

Gets a display-friendly name for any object type. Returns the most appropriate identifier for logging and debugging purposes.

obj: Object - The object to get display name from


get_display_name

1
2
3
4
get_display_name(
    node: Node,
    missing_name: String = "<none>"
) -> String

Flags: static

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