Skip to reading
GDScript Programming & Godot

Variables, native scripts, project data and cutscenes

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

Earlier edition reference / Current 0.86.4.0 property paths > p. 350

Source table from Variables, native scripts, project data and cutscenes, page 277
Record routeUseful data / operations
Variable.Get(id)value reads/writes runtime game state; definitions also provide name/type/start value in project data. Do not confuse a member variable with this store.
Scripts.Get(id)Native record fields include id, name, description, folder, source, global, events and exposedFunctions. Use the Script Designer for routine source/definition edits.
Cutscene.Get(id)Read its actual definition with ToDictionary. Use StartCutscene/EndCutscene for playback; editing timeline arrays does not imply immediate live reconstruction.
Project.Get("current")Project data, with property paths such as meta.title and settings.musicVolume.
Settings.Get("current")Settings below the current settings dictionary; use GetSetting/SetSetting for a convenient wrapper.

The raw record can contain project-specific dictionaries, arrays and custom data beyond a fixed catalog. ToDictionary/Get gives you the actual data. A newly invented key has no engine behavior until code uses it.

Native GDScript supports Godot APIs, but not every editor operation has a runtime helper. Import assets, bake/edit navigation, author complex graphs, manage translations and build a game through their tools unless you deliberately extend the editor/source project.

Page 277 of 378Permalink
Go to page