static int _m_SetVertices(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <System.Collections.Generic.List <UnityEngine.Vector2> >(L, 2)) { System.Collections.Generic.List <UnityEngine.Vector2> _vertices = (System.Collections.Generic.List <UnityEngine.Vector2>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Vector2>)); gen_to_be_invoked.SetVertices(_vertices); return(0); } if (gen_param_count == 2 && translator.Assignable <UnityEngine.Vector2[]>(L, 2)) { UnityEngine.Vector2[] _vertices = (UnityEngine.Vector2[])translator.GetObject(L, 2, typeof(UnityEngine.Vector2[])); gen_to_be_invoked.SetVertices(_vertices); 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.BillboardAsset.SetVertices!")); }
static int _m_GetImageTexCoords(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.BillboardAsset __cl_gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 1) { UnityEngine.Vector4[] __cl_gen_ret = __cl_gen_to_be_invoked.GetImageTexCoords( ); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && translator.Assignable <System.Collections.Generic.List <UnityEngine.Vector4> >(L, 2)) { System.Collections.Generic.List <UnityEngine.Vector4> imageTexCoords = (System.Collections.Generic.List <UnityEngine.Vector4>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Vector4>)); __cl_gen_to_be_invoked.GetImageTexCoords(imageTexCoords); 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.BillboardAsset.GetImageTexCoords!")); }
static int _m_GetIndices(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.BillboardAsset gen_to_be_invoked = (UnityEngine.BillboardAsset)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { ushort[] gen_ret = gen_to_be_invoked.GetIndices( ); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <System.Collections.Generic.List <ushort> >(L, 2)) { System.Collections.Generic.List <ushort> _indices = (System.Collections.Generic.List <ushort>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <ushort>)); gen_to_be_invoked.GetIndices(_indices); 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.BillboardAsset.GetIndices!")); }