NodeLocator

Extracts the script file name...

sort Weight: 10

Extracts the script file name from an object’s attached script. Uses pure logic class for composition over inheritance. Returns the script filename with extension, or empty string if no script.[br][br] [code]p_check[/code]: [i]Object[/i] - Object to get script name from

Version: v5.0.0

STABLE

Inherits: Resource
Source: node_locator.gd
Parsing: AST-based for maximum accuracy with symbol typing


Methods

locate_container

Signature: locate_container(search_root: Node) -> Node

search_root: Node - Root node to start the search from[br]

Returns: Node

Parameters:

  • search_root: Node

get_script_name

Signature: get_script_name(p_check: Object) -> String

p_check: Object - Object to get script name from

Returns: String

Parameters:

  • p_check: Object