GBObjectUtils
Summary
Section titled “Summary”Utility helpers for object introspection and display names.
Provides functions to derive readable names and script identifiers for objects and resources, intended for logging and diagnostics across the plugin.
Methods
Section titled “Methods”static func get_script_or_base_class_name( p_check: Object ) -> String
Finds the script name on the script attached to an object if one exists.
p_check
: Object - The object to inspect for script informationstatic func get_object_display_name( obj: Object ) -> String
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 fromstatic func get_display_name( node: Node, missing_name: String ) -> String
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 missingcustom_callable
: Callable - Optional callable that receives the node and returns a String
Source
Section titled “Source”addons/grid_building/utils/gb_object_utils.gd
This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.