LuaStateProxy
The LuaStateProxy library provides a proxy object for accessing and controlling Lua execution states.
Overview
LuaStateProxy allows you to:
- Access state properties and identifiers
- Execute code on specific states
- Communicate between different Lua states
- Manage actors associated with states
Constructor
| Function | Description |
|---|---|
LuaStateProxy.new | Create a new LuaStateProxy for the current state |
Properties
| Property | Type | Description |
|---|---|---|
Id | number | Unique identifier for this Lua state |
IsActorState | boolean | Whether this state was created for Actors |
Event | VoltSignal | Generic event for communication between states |
Methods
| Method | Description |
|---|---|
LuaStateProxy:GetActors | Get all Actor instances for this state |
LuaStateProxy:Execute | Execute code on this Lua state |