public static void Register() { LuaCallback.BeginClass(typeof(HotFix), typeof(UnityEngine.MonoBehaviour)); LuaCallback.RegisterFunc("Add", Add); LuaCallback.RegisterVar("AddHotFix", null, set_AddHotFix); LuaCallback.EndClass(); }
public static void Register() { LuaCallback.BeginClass(typeof(UnityEngine.MonoBehaviour), typeof(UnityEngine.Behaviour)); LuaCallback.RegisterFunc("IsInvoking", IsInvoking); LuaCallback.RegisterFunc("CancelInvoke", CancelInvoke); LuaCallback.RegisterFunc("Invoke", Invoke); LuaCallback.RegisterFunc("InvokeRepeating", InvokeRepeating); LuaCallback.RegisterFunc("StartCoroutine", StartCoroutine); LuaCallback.RegisterFunc("StopCoroutine", StopCoroutine); LuaCallback.RegisterFunc("StopAllCoroutines", StopAllCoroutines); LuaCallback.RegisterFunc("print", print); LuaCallback.RegisterVar("useGUILayout", get_useGUILayout, set_useGUILayout); LuaCallback.RegisterVar("runInEditMode", get_runInEditMode, set_runInEditMode); LuaCallback.EndClass(); }
public static void Register() { LuaCallback.BeginClass(typeof(UnityEngine.Object), null); LuaCallback.RegisterFunc("GetInstanceID", GetInstanceID); LuaCallback.RegisterFunc("GetHashCode", GetHashCode); LuaCallback.RegisterFunc("Equals", Equals); LuaCallback.RegisterFunc("Instantiate", Instantiate); LuaCallback.RegisterFunc("Destroy", Destroy); LuaCallback.RegisterFunc("DestroyImmediate", DestroyImmediate); LuaCallback.RegisterFunc("FindObjectsOfType", FindObjectsOfType); LuaCallback.RegisterFunc("DontDestroyOnLoad", DontDestroyOnLoad); LuaCallback.RegisterFunc("FindObjectOfType", FindObjectOfType); LuaCallback.RegisterFunc("ToString", ToString); LuaCallback.RegisterVar("name", get_name, set_name); LuaCallback.RegisterVar("hideFlags", get_hideFlags, set_hideFlags); LuaCallback.EndClass(); }
public static void Register() { LuaCallback.BeginClass(typeof(UnityEngine.Transform), typeof(UnityEngine.Component)); LuaCallback.RegisterFunc("SetParent", SetParent); LuaCallback.RegisterFunc("SetPositionAndRotation", SetPositionAndRotation); LuaCallback.RegisterFunc("Translate", Translate); LuaCallback.RegisterFunc("Rotate", Rotate); LuaCallback.RegisterFunc("RotateAround", RotateAround); LuaCallback.RegisterFunc("LookAt", LookAt); LuaCallback.RegisterFunc("TransformDirection", TransformDirection); LuaCallback.RegisterFunc("InverseTransformDirection", InverseTransformDirection); LuaCallback.RegisterFunc("TransformVector", TransformVector); LuaCallback.RegisterFunc("InverseTransformVector", InverseTransformVector); LuaCallback.RegisterFunc("TransformPoint", TransformPoint); LuaCallback.RegisterFunc("InverseTransformPoint", InverseTransformPoint); LuaCallback.RegisterFunc("DetachChildren", DetachChildren); LuaCallback.RegisterFunc("SetAsFirstSibling", SetAsFirstSibling); LuaCallback.RegisterFunc("SetAsLastSibling", SetAsLastSibling); LuaCallback.RegisterFunc("SetSiblingIndex", SetSiblingIndex); LuaCallback.RegisterFunc("GetSiblingIndex", GetSiblingIndex); LuaCallback.RegisterFunc("Find", Find); LuaCallback.RegisterFunc("IsChildOf", IsChildOf); LuaCallback.RegisterFunc("GetEnumerator", GetEnumerator); LuaCallback.RegisterFunc("GetChild", GetChild); LuaCallback.RegisterVar("position", get_position, set_position); LuaCallback.RegisterVar("localPosition", get_localPosition, set_localPosition); LuaCallback.RegisterVar("eulerAngles", get_eulerAngles, set_eulerAngles); LuaCallback.RegisterVar("localEulerAngles", get_localEulerAngles, set_localEulerAngles); LuaCallback.RegisterVar("right", get_right, set_right); LuaCallback.RegisterVar("up", get_up, set_up); LuaCallback.RegisterVar("forward", get_forward, set_forward); LuaCallback.RegisterVar("rotation", get_rotation, set_rotation); LuaCallback.RegisterVar("localRotation", get_localRotation, set_localRotation); LuaCallback.RegisterVar("localScale", get_localScale, set_localScale); LuaCallback.RegisterVar("parent", get_parent, set_parent); LuaCallback.RegisterVar("worldToLocalMatrix", get_worldToLocalMatrix, null); LuaCallback.RegisterVar("localToWorldMatrix", get_localToWorldMatrix, null); LuaCallback.RegisterVar("root", get_root, null); LuaCallback.RegisterVar("childCount", get_childCount, null); LuaCallback.RegisterVar("lossyScale", get_lossyScale, null); LuaCallback.RegisterVar("hasChanged", get_hasChanged, set_hasChanged); LuaCallback.RegisterVar("hierarchyCapacity", get_hierarchyCapacity, set_hierarchyCapacity); LuaCallback.RegisterVar("hierarchyCount", get_hierarchyCount, null); LuaCallback.EndClass(); }
public static void Register() { LuaCallback.BeginClass(typeof(UnityEngine.Component), typeof(UnityEngine.Object)); LuaCallback.RegisterFunc("GetComponent", GetComponent); LuaCallback.RegisterFunc("GetComponentInChildren", GetComponentInChildren); LuaCallback.RegisterFunc("GetComponentsInChildren", GetComponentsInChildren); LuaCallback.RegisterFunc("GetComponentInParent", GetComponentInParent); LuaCallback.RegisterFunc("GetComponentsInParent", GetComponentsInParent); LuaCallback.RegisterFunc("GetComponents", GetComponents); LuaCallback.RegisterFunc("CompareTag", CompareTag); LuaCallback.RegisterFunc("SendMessageUpwards", SendMessageUpwards); LuaCallback.RegisterFunc("SendMessage", SendMessage); LuaCallback.RegisterFunc("BroadcastMessage", BroadcastMessage); LuaCallback.RegisterVar("transform", get_transform, null); LuaCallback.RegisterVar("gameObject", get_gameObject, null); LuaCallback.RegisterVar("tag", get_tag, set_tag); LuaCallback.EndClass(); }