#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLuaBase.lua_CSFunction; #endif using XLua; using System.Collections.Generic; using XGame; namespace XLua.CSObjectWrap { using Utils = XLua.Utils; public class UnityEngineGameObjectWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(UnityEngine.GameObject); Utils.BeginObjectRegister(type, L, translator, 0, 40, 9, 3); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponent", _m_GetComponent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentInChildren", _m_GetComponentInChildren); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentInParent", _m_GetComponentInParent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponents", _m_GetComponents); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentsInChildren", _m_GetComponentsInChildren); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentsInParent", _m_GetComponentsInParent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetComponent", _m_TryGetComponent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMessageUpwards", _m_SendMessageUpwards); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMessage", _m_SendMessage); Utils.RegisterFunc(L, Utils.METHOD_IDX, "BroadcastMessage", _m_BroadcastMessage); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddComponent", _m_AddComponent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentCount", _m_GetComponentCount); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentAtIndex", _m_GetComponentAtIndex); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentIndex", _m_GetComponentIndex); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetActive", _m_SetActive); Utils.RegisterFunc(L, Utils.METHOD_IDX, "CompareTag", _m_CompareTag); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsActive", _m_IsActive); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetActiveByScale", _m_SetActiveByScale); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetActiveEx", _m_SetActiveEx); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetActiveExTwo", _m_SetActiveExTwo); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetActive3", _m_SetActive3); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsHide", _m_IsHide); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetChildren", _m_GetChildren); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindGameObject", _m_FindGameObject); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindTransform", _m_FindTransform); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOrAddComponent", _m_GetOrAddComponent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAllChildrenGameObjects", _m_GetAllChildrenGameObjects); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPosition", _m_SetPosition); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalPosition", _m_SetLocalPosition); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRotation", _m_SetRotation); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalRotation", _m_SetLocalRotation); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalEulerAngles", _m_SetLocalEulerAngles); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLocalScale", _m_SetLocalScale); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPosition", _m_GetPosition); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLocalPosition", _m_GetLocalPosition); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLocalScale", _m_GetLocalScale); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRotation", _m_GetRotation); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLocalRotation", _m_GetLocalRotation); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEulerAngle", _m_GetEulerAngle); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLocalEulerAngle", _m_GetLocalEulerAngle); Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); Utils.RegisterFunc(L, Utils.GETTER_IDX, "layer", _g_get_layer); Utils.RegisterFunc(L, Utils.GETTER_IDX, "activeSelf", _g_get_activeSelf); Utils.RegisterFunc(L, Utils.GETTER_IDX, "activeInHierarchy", _g_get_activeInHierarchy); Utils.RegisterFunc(L, Utils.GETTER_IDX, "isStatic", _g_get_isStatic); Utils.RegisterFunc(L, Utils.GETTER_IDX, "tag", _g_get_tag); Utils.RegisterFunc(L, Utils.GETTER_IDX, "scene", _g_get_scene); Utils.RegisterFunc(L, Utils.GETTER_IDX, "sceneCullingMask", _g_get_sceneCullingMask); Utils.RegisterFunc(L, Utils.GETTER_IDX, "gameObject", _g_get_gameObject); Utils.RegisterFunc(L, Utils.SETTER_IDX, "layer", _s_set_layer); Utils.RegisterFunc(L, Utils.SETTER_IDX, "isStatic", _s_set_isStatic); Utils.RegisterFunc(L, Utils.SETTER_IDX, "tag", _s_set_tag); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 9, 0, 0); Utils.RegisterFunc(L, Utils.CLS_IDX, "CreatePrimitive", _m_CreatePrimitive_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "FindWithTag", _m_FindWithTag_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "FindGameObjectWithTag", _m_FindGameObjectWithTag_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "FindGameObjectsWithTag", _m_FindGameObjectsWithTag_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "Find", _m_Find_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "SetGameObjectsActive", _m_SetGameObjectsActive_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "InstantiateGameObjects", _m_InstantiateGameObjects_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "GetScene", _m_GetScene_xlua_st_); Utils.EndClassRegister(type, L, translator); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _name = LuaAPI.lua_tostring(L, 2); var gen_ret = new UnityEngine.GameObject(_name); translator.Push(L, gen_ret); return 1; } if(LuaAPI.lua_gettop(L) == 1) { var gen_ret = new UnityEngine.GameObject(); translator.Push(L, gen_ret); return 1; } if(LuaAPI.lua_gettop(L) >= 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || translator.Assignable(L, 3))) { string _name = LuaAPI.lua_tostring(L, 2); System.Type[] _components = translator.GetParams(L, 3); var gen_ret = new UnityEngine.GameObject(_name, _components); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_CreatePrimitive_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { UnityEngine.PrimitiveType _type;translator.Get(L, 1, out _type); var gen_ret = UnityEngine.GameObject.CreatePrimitive( _type ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComponent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); var gen_ret = gen_to_be_invoked.GetComponent( _type ); translator.Push(L, gen_ret); return 1; } if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _type = LuaAPI.lua_tostring(L, 2); var gen_ret = gen_to_be_invoked.GetComponent( _type ); translator.Push(L, gen_ret); return 1; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) { string _asm = LuaAPI.lua_tostring(L, 2); string _typeName = LuaAPI.lua_tostring(L, 3); var gen_ret = gen_to_be_invoked.GetComponent( _asm, _typeName ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.GetComponent!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComponentInChildren(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); var gen_ret = gen_to_be_invoked.GetComponentInChildren( _type ); translator.Push(L, gen_ret); return 1; } if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); bool _includeInactive = LuaAPI.lua_toboolean(L, 3); var gen_ret = gen_to_be_invoked.GetComponentInChildren( _type, _includeInactive ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.GetComponentInChildren!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComponentInParent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); var gen_ret = gen_to_be_invoked.GetComponentInParent( _type ); translator.Push(L, gen_ret); return 1; } if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); bool _includeInactive = LuaAPI.lua_toboolean(L, 3); var gen_ret = gen_to_be_invoked.GetComponentInParent( _type, _includeInactive ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.GetComponentInParent!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComponents(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); var gen_ret = gen_to_be_invoked.GetComponents( _type ); translator.Push(L, gen_ret); return 1; } if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable>(L, 3)) { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); System.Collections.Generic.List _results = (System.Collections.Generic.List)translator.GetObject(L, 3, typeof(System.Collections.Generic.List)); gen_to_be_invoked.GetComponents( _type, _results ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.GetComponents!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComponentsInChildren(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); var gen_ret = gen_to_be_invoked.GetComponentsInChildren( _type ); translator.Push(L, gen_ret); return 1; } if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); bool _includeInactive = LuaAPI.lua_toboolean(L, 3); var gen_ret = gen_to_be_invoked.GetComponentsInChildren( _type, _includeInactive ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.GetComponentsInChildren!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComponentsInParent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& translator.Assignable(L, 2)) { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); var gen_ret = gen_to_be_invoked.GetComponentsInParent( _type ); translator.Push(L, gen_ret); return 1; } if(gen_param_count == 3&& translator.Assignable(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); bool _includeInactive = LuaAPI.lua_toboolean(L, 3); var gen_ret = gen_to_be_invoked.GetComponentsInParent( _type, _includeInactive ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.GetComponentsInParent!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_TryGetComponent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); UnityEngine.Component _component; var gen_ret = gen_to_be_invoked.TryGetComponent( _type, out _component ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _component); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FindWithTag_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _tag = LuaAPI.lua_tostring(L, 1); var gen_ret = UnityEngine.GameObject.FindWithTag( _tag ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SendMessageUpwards(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _methodName = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.SendMessageUpwards( _methodName ); return 0; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) { string _methodName = LuaAPI.lua_tostring(L, 2); UnityEngine.SendMessageOptions _options;translator.Get(L, 3, out _options); gen_to_be_invoked.SendMessageUpwards( _methodName, _options ); return 0; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) { string _methodName = LuaAPI.lua_tostring(L, 2); object _value = translator.GetObject(L, 3, typeof(object)); gen_to_be_invoked.SendMessageUpwards( _methodName, _value ); return 0; } if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) { string _methodName = LuaAPI.lua_tostring(L, 2); object _value = translator.GetObject(L, 3, typeof(object)); UnityEngine.SendMessageOptions _options;translator.Get(L, 4, out _options); gen_to_be_invoked.SendMessageUpwards( _methodName, _value, _options ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.SendMessageUpwards!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SendMessage(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _methodName = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.SendMessage( _methodName ); return 0; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) { string _methodName = LuaAPI.lua_tostring(L, 2); UnityEngine.SendMessageOptions _options;translator.Get(L, 3, out _options); gen_to_be_invoked.SendMessage( _methodName, _options ); return 0; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) { string _methodName = LuaAPI.lua_tostring(L, 2); object _value = translator.GetObject(L, 3, typeof(object)); gen_to_be_invoked.SendMessage( _methodName, _value ); return 0; } if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) { string _methodName = LuaAPI.lua_tostring(L, 2); object _value = translator.GetObject(L, 3, typeof(object)); UnityEngine.SendMessageOptions _options;translator.Get(L, 4, out _options); gen_to_be_invoked.SendMessage( _methodName, _value, _options ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.SendMessage!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_BroadcastMessage(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _methodName = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.BroadcastMessage( _methodName ); return 0; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) { string _methodName = LuaAPI.lua_tostring(L, 2); UnityEngine.SendMessageOptions _options;translator.Get(L, 3, out _options); gen_to_be_invoked.BroadcastMessage( _methodName, _options ); return 0; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) { string _methodName = LuaAPI.lua_tostring(L, 2); object _parameter = translator.GetObject(L, 3, typeof(object)); gen_to_be_invoked.BroadcastMessage( _methodName, _parameter ); return 0; } if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)&& translator.Assignable(L, 4)) { string _methodName = LuaAPI.lua_tostring(L, 2); object _parameter = translator.GetObject(L, 3, typeof(object)); UnityEngine.SendMessageOptions _options;translator.Get(L, 4, out _options); gen_to_be_invoked.BroadcastMessage( _methodName, _parameter, _options ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.BroadcastMessage!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AddComponent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { System.Type _componentType = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); var gen_ret = gen_to_be_invoked.AddComponent( _componentType ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComponentCount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.GetComponentCount( ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComponentAtIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { int _index = LuaAPI.xlua_tointeger(L, 2); var gen_ret = gen_to_be_invoked.GetComponentAtIndex( _index ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetComponentIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { UnityEngine.Component _component = (UnityEngine.Component)translator.GetObject(L, 2, typeof(UnityEngine.Component)); var gen_ret = gen_to_be_invoked.GetComponentIndex( _component ); LuaAPI.xlua_pushinteger(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetActive(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { bool _value = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.SetActive( _value ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_CompareTag(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { string _tag = LuaAPI.lua_tostring(L, 2); var gen_ret = gen_to_be_invoked.CompareTag( _tag ); LuaAPI.lua_pushboolean(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FindGameObjectWithTag_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _tag = LuaAPI.lua_tostring(L, 1); var gen_ret = UnityEngine.GameObject.FindGameObjectWithTag( _tag ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FindGameObjectsWithTag_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _tag = LuaAPI.lua_tostring(L, 1); var gen_ret = UnityEngine.GameObject.FindGameObjectsWithTag( _tag ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Find_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _name = LuaAPI.lua_tostring(L, 1); var gen_ret = UnityEngine.GameObject.Find( _name ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetGameObjectsActive_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { Unity.Collections.NativeArray _instanceIDs;translator.Get(L, 1, out _instanceIDs); bool _active = LuaAPI.lua_toboolean(L, 2); UnityEngine.GameObject.SetGameObjectsActive( _instanceIDs, _active ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_InstantiateGameObjects_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)&& translator.Assignable>(L, 4)&& translator.Assignable(L, 5)) { int _sourceInstanceID = LuaAPI.xlua_tointeger(L, 1); int _count = LuaAPI.xlua_tointeger(L, 2); Unity.Collections.NativeArray _newInstanceIDs;translator.Get(L, 3, out _newInstanceIDs); Unity.Collections.NativeArray _newTransformInstanceIDs;translator.Get(L, 4, out _newTransformInstanceIDs); UnityEngine.SceneManagement.Scene _destinationScene;translator.Get(L, 5, out _destinationScene); UnityEngine.GameObject.InstantiateGameObjects( _sourceInstanceID, _count, _newInstanceIDs, _newTransformInstanceIDs, _destinationScene ); return 0; } if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable>(L, 3)&& translator.Assignable>(L, 4)) { int _sourceInstanceID = LuaAPI.xlua_tointeger(L, 1); int _count = LuaAPI.xlua_tointeger(L, 2); Unity.Collections.NativeArray _newInstanceIDs;translator.Get(L, 3, out _newInstanceIDs); Unity.Collections.NativeArray _newTransformInstanceIDs;translator.Get(L, 4, out _newTransformInstanceIDs); UnityEngine.GameObject.InstantiateGameObjects( _sourceInstanceID, _count, _newInstanceIDs, _newTransformInstanceIDs ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.GameObject.InstantiateGameObjects!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetScene_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { int _instanceID = LuaAPI.xlua_tointeger(L, 1); var gen_ret = UnityEngine.GameObject.GetScene( _instanceID ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_IsActive(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.IsActive( ); LuaAPI.lua_pushboolean(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetActiveByScale(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { bool _active = LuaAPI.lua_toboolean(L, 2); gen_to_be_invoked.SetActiveByScale( _active ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetActiveEx(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { bool _active = LuaAPI.lua_toboolean(L, 2); var gen_ret = gen_to_be_invoked.SetActiveEx( _active ); LuaAPI.lua_pushboolean(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetActiveExTwo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { bool _active = LuaAPI.lua_toboolean(L, 2); var gen_ret = gen_to_be_invoked.SetActiveExTwo( _active ); LuaAPI.lua_pushboolean(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetActive3(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { bool _active = LuaAPI.lua_toboolean(L, 2); var gen_ret = gen_to_be_invoked.SetActive3( _active ); LuaAPI.lua_pushboolean(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_IsHide(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.IsHide( ); LuaAPI.lua_pushboolean(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetChildren(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.GetChildren( ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FindGameObject(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { string _name = LuaAPI.lua_tostring(L, 2); var gen_ret = gen_to_be_invoked.FindGameObject( _name ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FindTransform(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { string _name = LuaAPI.lua_tostring(L, 2); var gen_ret = gen_to_be_invoked.FindTransform( _name ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetOrAddComponent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { string _typeName = LuaAPI.lua_tostring(L, 2); var gen_ret = gen_to_be_invoked.GetOrAddComponent( _typeName ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetAllChildrenGameObjects(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.GetAllChildrenGameObjects( ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetPosition(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { float _x = (float)LuaAPI.lua_tonumber(L, 2); float _y = (float)LuaAPI.lua_tonumber(L, 3); float _z = (float)LuaAPI.lua_tonumber(L, 4); gen_to_be_invoked.SetPosition( _x, _y, _z ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetLocalPosition(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { float _x = (float)LuaAPI.lua_tonumber(L, 2); float _y = (float)LuaAPI.lua_tonumber(L, 3); float _z = (float)LuaAPI.lua_tonumber(L, 4); gen_to_be_invoked.SetLocalPosition( _x, _y, _z ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetRotation(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { float _x = (float)LuaAPI.lua_tonumber(L, 2); float _y = (float)LuaAPI.lua_tonumber(L, 3); float _z = (float)LuaAPI.lua_tonumber(L, 4); float _w = (float)LuaAPI.lua_tonumber(L, 5); gen_to_be_invoked.SetRotation( _x, _y, _z, _w ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetLocalRotation(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { float _x = (float)LuaAPI.lua_tonumber(L, 2); float _y = (float)LuaAPI.lua_tonumber(L, 3); float _z = (float)LuaAPI.lua_tonumber(L, 4); float _w = (float)LuaAPI.lua_tonumber(L, 5); gen_to_be_invoked.SetLocalRotation( _x, _y, _z, _w ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetLocalEulerAngles(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { float _x = (float)LuaAPI.lua_tonumber(L, 2); float _y = (float)LuaAPI.lua_tonumber(L, 3); float _z = (float)LuaAPI.lua_tonumber(L, 4); gen_to_be_invoked.SetLocalEulerAngles( _x, _y, _z ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetLocalScale(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { float _x = (float)LuaAPI.lua_tonumber(L, 2); float _y = (float)LuaAPI.lua_tonumber(L, 3); float _z = (float)LuaAPI.lua_tonumber(L, 4); gen_to_be_invoked.SetLocalScale( _x, _y, _z ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetPosition(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { float _y; float _z; var gen_ret = gen_to_be_invoked.GetPosition( out _y, out _z ); LuaAPI.lua_pushnumber(L, gen_ret); LuaAPI.lua_pushnumber(L, _y); LuaAPI.lua_pushnumber(L, _z); return 3; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetLocalPosition(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { float _y; float _z; var gen_ret = gen_to_be_invoked.GetLocalPosition( out _y, out _z ); LuaAPI.lua_pushnumber(L, gen_ret); LuaAPI.lua_pushnumber(L, _y); LuaAPI.lua_pushnumber(L, _z); return 3; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetLocalScale(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { float _x; float _y; float _z; gen_to_be_invoked.GetLocalScale( out _x, out _y, out _z ); LuaAPI.lua_pushnumber(L, _x); LuaAPI.lua_pushnumber(L, _y); LuaAPI.lua_pushnumber(L, _z); return 3; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetRotation(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { float _x; float _y; float _z; float _w; gen_to_be_invoked.GetRotation( out _x, out _y, out _z, out _w ); LuaAPI.lua_pushnumber(L, _x); LuaAPI.lua_pushnumber(L, _y); LuaAPI.lua_pushnumber(L, _z); LuaAPI.lua_pushnumber(L, _w); return 4; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetLocalRotation(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { float _x; float _y; float _z; float _w; gen_to_be_invoked.GetLocalRotation( out _x, out _y, out _z, out _w ); LuaAPI.lua_pushnumber(L, _x); LuaAPI.lua_pushnumber(L, _y); LuaAPI.lua_pushnumber(L, _z); LuaAPI.lua_pushnumber(L, _w); return 4; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetEulerAngle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { float _x; float _y; float _z; gen_to_be_invoked.GetEulerAngle( out _x, out _y, out _z ); LuaAPI.lua_pushnumber(L, _x); LuaAPI.lua_pushnumber(L, _y); LuaAPI.lua_pushnumber(L, _z); return 3; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetLocalEulerAngle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { float _x; float _y; float _z; gen_to_be_invoked.GetLocalEulerAngle( out _x, out _y, out _z ); LuaAPI.lua_pushnumber(L, _x); LuaAPI.lua_pushnumber(L, _y); LuaAPI.lua_pushnumber(L, _z); return 3; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_transform(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.transform); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_layer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.layer); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_activeSelf(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.activeSelf); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_activeInHierarchy(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.activeInHierarchy); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_isStatic(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isStatic); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_tag(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.tag); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_scene(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.scene); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_sceneCullingMask(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushuint64(L, gen_to_be_invoked.sceneCullingMask); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_gameObject(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.gameObject); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_layer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); gen_to_be_invoked.layer = LuaAPI.xlua_tointeger(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_isStatic(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); gen_to_be_invoked.isStatic = LuaAPI.lua_toboolean(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_tag(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); gen_to_be_invoked.tag = LuaAPI.lua_tostring(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }