24. Find records through registries
func run() -> String:
var door: Variant = Objects.Get("archive_door")
if door == null or not door.Exists():
return "Door is missing"
var title: String = str(door.Get("name", "Door"))
Log(title)
return titleThe main registries are Character, Scene, Objects, Asset, Inventory, Cursor, Verb, GUI, Dialogue, Quest, Variable, Fonts and Cutscene. Script registries cover the supported languages. Project and Settings provide project-level data; Global provides script-call proxies.
Use Get when the ID is in a string, contains punctuation or might collide with an inherited method.
Objects.archive_door is a convenient direct spelling for a simple ID. Registry IDs and display names serve different purposes; use stable IDs in calls.
Figure 8. Registry-aware completion helps choose a record rather than guessing a display label.
PCA’s registries are separate from Godot’s SceneTree. Scene.lab is room data. get_tree().current_scene is the loaded top-level Godot scene, which can be the PCA editor or runner.
