LuaState
class for holding a Lua state and interacting with it. You may create as many instances as you want, each one representing an independent Lua state.LuaCoroutine
,LuaFunction
,LuaLightUserdata
,LuaTable
andLuaUserdata
classes that wrap instances from a Lua state in Godot.LuaError
class that represents errors from Lua code.- Support for registering
Variant
type in Lua states, so that any Godot data can be manipulated in Lua. - Support for registering Godot classes in Lua, so you can create instances and access integer constants.
- Support for adding access to Godot singleton objects in Lua, accessible directly by name.
- Support for registering Godot utility functions in Lua, like
print
,lerp
andis_same
. - Support for adding access to Godot global enums in Lua, like
OK
,TYPE_STRING
andSIDE_LEFT
.