Inheritance: BaseMeshEffect
 static public int ModifyMesh(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.UI.PositionAsUV1 self = (UnityEngine.UI.PositionAsUV1)checkSelf(l);
         UnityEngine.UI.VertexHelper  a1;
         checkType(l, 2, out a1);
         self.ModifyMesh(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
 static public int ModifyMesh(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, "ModifyMesh__VertexHelper", argc, 2, typeof(UnityEngine.UI.VertexHelper)))
         {
             UnityEngine.UI.PositionAsUV1 self = (UnityEngine.UI.PositionAsUV1)checkSelf(l);
             UnityEngine.UI.VertexHelper  a1;
             checkType(l, 3, out a1);
             self.ModifyMesh(a1);
             pushValue(l, true);
             return(1);
         }
         else if (matchType(l, "ModifyMesh__Mesh", argc, 2, typeof(UnityEngine.Mesh)))
         {
             UnityEngine.UI.PositionAsUV1 self = (UnityEngine.UI.PositionAsUV1)checkSelf(l);
             UnityEngine.Mesh             a1;
             checkType(l, 3, out a1);
             self.ModifyMesh(a1);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Beispiel #3
0
 static public int ModifyMesh(IntPtr l)
 {
     try {
         UnityEngine.UI.PositionAsUV1 self = (UnityEngine.UI.PositionAsUV1)checkSelf(l);
         UnityEngine.UI.VertexHelper  a1;
         checkType(l, 2, out a1);
         self.ModifyMesh(a1);
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int ModifyVertices(IntPtr l)
 {
     try{
         UnityEngine.UI.PositionAsUV1 self = (UnityEngine.UI.PositionAsUV1)checkSelf(l);
         System.Collections.Generic.List <UnityEngine.UIVertex> a1;
         checkType(l, 2, out a1);
         self.ModifyVertices(a1);
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 static public int ModifyVertices(IntPtr l)
 {
     try {
         UnityEngine.UI.PositionAsUV1 self = (UnityEngine.UI.PositionAsUV1)checkSelf(l);
         System.Collections.Generic.List <UnityEngine.UIVertex> a1;
         checkType(l, 2, out a1);
         self.ModifyVertices(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int ModifyMesh__Mesh(IntPtr l)
 {
     try {
         UnityEngine.UI.PositionAsUV1 self = (UnityEngine.UI.PositionAsUV1)checkSelf(l);
         UnityEngine.Mesh             a1;
         checkType(l, 2, out a1);
         self.ModifyMesh(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }