Skip to reading
GDScript Programming & Godot

Designer: Lua script records

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

Lua 5.4 source records.

Native record route: LuaScripts.Get("math_lua").

Append .Get("property.path", fallback) for a read or .Set("property.path", value) for a write. Replace the example record ID with one from your own project.

Source table from Designer: Lua script records, page 274
Stored pathType / accessPurpose and limits
idtext R / DefinitionStable Lua Script ID.
nametext W / DefinitionLua Script display/editor name.
descriptiontext W / DefinitionLua Script description.
foldertext W / DefinitionEditor organization folder.
languageVersiontext R / DefinitionLua language version.
sourcetext W / DefinitionLua 5.4 source text. Edit source in the Lua Designer; changes invalidate the Lua runtime cache.
globalboolean W / DefinitionWhether one persistent instance listens globally.
eventsarray W / DefinitionDeclared Lua-script event bindings.
enabledboolean W / DefinitionWhether this Lua Script is enabled.
customdictionary W / Definition / ContainerProject-defined script properties.
Page 274 of 378Permalink
Go to page