Skip to content

WorldSceneValidator ​

Inherits: RefCounted

Utility class for validating WorldScene context in editor Used by NPC, InteractableObject, and Trigger area to ensure they're in a valid map

Methods ​

boolis_in_valid_world_scene( node: Node ) static
WorldSceneget_world_scene( node: Node ) static
intget_world_id( node: Node ) static

Method descriptions ​

bool is_in_valid_world_scene( node: Node ) ​

Check if a node is within a valid WorldScene context

WorldScene get_world_scene( node: Node ) ​

Get the WorldScene node that contains this node

int get_world_id( node: Node ) ​

Get the map_id from the WorldScene containing this node