internal sealed override void AddTo(UnityEngine.UI.VertexHelper helper) { if (Verts != null && Indices != null) { helper.AddUIVertexStream(Verts.Select(Map).ToList(), Indices.ToList()); } }
static StackObject *AddUIVertexStream_12(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Collections.Generic.List <System.Int32> @indices = (System.Collections.Generic.List <System.Int32>) typeof(System.Collections.Generic.List <System.Int32>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Collections.Generic.List <UnityEngine.UIVertex> @verts = (System.Collections.Generic.List <UnityEngine.UIVertex>) typeof(System.Collections.Generic.List <UnityEngine.UIVertex>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.UI.VertexHelper instance_of_this_method = (UnityEngine.UI.VertexHelper) typeof(UnityEngine.UI.VertexHelper).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.AddUIVertexStream(@verts, @indices); return(__ret); }
static int _m_AddUIVertexStream(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.VertexHelper __cl_gen_to_be_invoked = (UnityEngine.UI.VertexHelper)translator.FastGetCSObj(L, 1); try { { System.Collections.Generic.List <UnityEngine.UIVertex> verts = (System.Collections.Generic.List <UnityEngine.UIVertex>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.UIVertex>)); System.Collections.Generic.List <int> indices = (System.Collections.Generic.List <int>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <int>)); __cl_gen_to_be_invoked.AddUIVertexStream(verts, indices); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }