Skip to reading
GDScript Programming & Godot

Registries, proxies and native nodes

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

These are the inherited PCA registries supplied after runtime binding. A registry finds records; a record proxy reads/changes one record; a script-call proxy routes a call to another script. None of these is automatically the rendered Node3D.

Source table from Registries, proxies and native nodes, page 224
RegistryContents
CharacterReusable character definitions; active player has the player shortcut.
ObjectsPlaced entities, character instances and trigger entities in rooms.
ScenePCA room definitions, not the top-level Godot scene.
InventoryInventory item definitions, separate from a bag’s quantities.
GUIAuthored interfaces; use element helpers for individual controls.
DialogueDialogue graph definitions.
QuestQuest definitions and runtime progress routes.
AssetImported media/model/data records.
CursorPointer definitions.
VerbInteraction verb definitions.
FontsFont definitions.
CutsceneAuthored timeline definitions.
VariableSaved runtime game variables; use value.
ScriptsNative GDScript records.
PCAScriptsPCA Script records.
LuaScriptsLua records.
BasicScriptsBASIC records.
VisualScriptVisual graph records.
ProjectWhole project data, usually Get("current").
SettingsCurrent settings data, usually Get("current").

PCA.Get(collection) creates a registry for a supported runtime collection name, including Camera, Spawn and Objective. PCA.Has only tests whether its collection-name string is nonempty; it does not validate that the collection exists. Use the registry’s Has or the record’s Exists for an actual record test.

Page 224 of 378Permalink
Go to page