|
uLua v3.1.0
A Lua Modding Framework for Unity.
|
A sequencing class to control the order in which objects are exposed to Lua. More...
Public Member Functions | |
| void | AddExposeInstruction (ExposeTarget exposeTarget, MonoBehaviour targetMonoBehaviour, string luaName, LuaObject luaParent=null, bool enableObjectScript=false) |
| Adds an expose instruction to the sequencer. More... | |
| void | RemoveExposeInstruction (MonoBehaviour targetMonoBehaviour) |
| Removes an expose instruction from the sequencer. More... | |
| void | ExecuteExposeSequence (ExposeTarget exposeTarget) |
| Executes the expose instructions for a specific target event. More... | |
Properties | |
| int | Count [get] |
| Returns the number of expose instructions in the sequencer. | |
A sequencing class to control the order in which objects are exposed to Lua.
|
inline |
Adds an expose instruction to the sequencer.
| exposeTarget | The target event to expose the MonoBehaviour on. |
| targetMonoBehaviour | The MonoBehaviour to expose. |
| luaName | The Lua name to expose the MonoBehaviour as. |
| luaParent | The Lua parent of the MonoBehaviour, if any. |
| enableObjectScript | If true, the object script will be enabled after exposure. |
This method allows you to queue up MonoBehaviours to be exposed to Lua at specific points in the Unity lifecycle. The exposeTarget parameter determines when the MonoBehaviour will be exposed (e.g., Awake, Start, OnEnable, SceneLoaded).
|
inline |
Executes the expose instructions for a specific target event.
| exposeTarget | The target event to execute expose instructions for. |
|
inline |
Removes an expose instruction from the sequencer.
| targetMonoBehaviour | The MonoBehaviour whose expose instruction should be removed. |
This method allows you to remove a specific MonoBehaviour's exposure instruction from the sequencer if it is no longer needed or if the MonoBehaviour has been destroyed.