Class LuaBehaviour
- Namespace
- LuaMod
- Assembly
- LuaMod.dll
public class LuaBehaviour : MonoBehaviour
- Inheritance
-
objectIl2CppObjectBaseObjectObjectComponentBehaviourMonoBehaviourLuaBehaviour
- Derived
Fields
AwakeFunction
protected DynValue AwakeFunction
Field Value
- DynValue
BehaviourScript
public LuaModScript BehaviourScript
Field Value
FixedUpdateFunction
protected DynValue FixedUpdateFunction
Field Value
- DynValue
LateStartFunction
protected DynValue LateStartFunction
Field Value
- DynValue
LateUpdateFunction
protected DynValue LateUpdateFunction
Field Value
- DynValue
OnBecameInvisibleFunction
protected DynValue OnBecameInvisibleFunction
Field Value
- DynValue
OnBecameVisibleFunction
protected DynValue OnBecameVisibleFunction
Field Value
- DynValue
OnCollisionEnterFunction
protected DynValue OnCollisionEnterFunction
Field Value
- DynValue
OnCollisionExitFunction
protected DynValue OnCollisionExitFunction
Field Value
- DynValue
OnCollisionStayFunction
protected DynValue OnCollisionStayFunction
Field Value
- DynValue
OnDestroyFunction
protected DynValue OnDestroyFunction
Field Value
- DynValue
OnDisableFunction
protected DynValue OnDisableFunction
Field Value
- DynValue
OnEnableFunction
protected DynValue OnEnableFunction
Field Value
- DynValue
OnJointBreakFunction
protected DynValue OnJointBreakFunction
Field Value
- DynValue
OnParticleCollisionFunction
protected DynValue OnParticleCollisionFunction
Field Value
- DynValue
OnParticleSystemStoppedFunction
protected DynValue OnParticleSystemStoppedFunction
Field Value
- DynValue
OnParticleTriggerFunction
protected DynValue OnParticleTriggerFunction
Field Value
- DynValue
OnParticleUpdateJobScheduledFunction
protected DynValue OnParticleUpdateJobScheduledFunction
Field Value
- DynValue
OnTransformChildrenChangedFunction
protected DynValue OnTransformChildrenChangedFunction
Field Value
- DynValue
OnTransformParentChangedFunction
protected DynValue OnTransformParentChangedFunction
Field Value
- DynValue
OnTriggerEnterFunction
protected DynValue OnTriggerEnterFunction
Field Value
- DynValue
OnTriggerExitFunction
protected DynValue OnTriggerExitFunction
Field Value
- DynValue
OnTriggerStayFunction
protected DynValue OnTriggerStayFunction
Field Value
- DynValue
Ready
Indicates whether this LuaBehaviour is initialized and ready.
public bool Ready
Field Value
- bool
ScriptAsset
public TextAsset ScriptAsset
Field Value
- TextAsset
ScriptName
The name of the Lua script file (used if ScriptAsset is null).
public string ScriptName
Field Value
- string
ScriptTags
Optional list of tags associated with this Lua Behaviour.
public List<string> ScriptTags
Field Value
- List<string>
SlowUpdateFunction
protected DynValue SlowUpdateFunction
Field Value
- DynValue
SlowUpdateTime
The interval at which the SlowUpdate function is called in seconds.
public float SlowUpdateTime
Field Value
- float
StartFunction
protected DynValue StartFunction
Field Value
- DynValue
UpdateFunction
protected DynValue UpdateFunction
Field Value
- DynValue
Methods
CallFunction(string, params DynValue[])
public bool CallFunction(string functionname, params DynValue[] args)
Parameters
functionnamestringargsDynValue[]
Returns
- bool
CallFunctionULTEvent(string, int, float, string, Object)
public void CallFunctionULTEvent(string functionname, int param1, float param2, string param3, Object param4)
Parameters
functionnamestringparam1intparam2floatparam3stringparam4Object
GetScriptVariable(string)
public DynValue GetScriptVariable(string name)
Parameters
namestring
Returns
- DynValue
SetScriptVariable(string, DynValue)
public void SetScriptVariable(string name, DynValue DyVar)
Parameters
namestringDyVarDynValue
SetSlowUpdate(bool, float)
public void SetSlowUpdate(bool running, float time)
Parameters
runningbooltimefloat