UnityEngine.UI.BaseMeshEffect.ModifyMesh C# (CSharp) Méthode

ModifyMesh() public méthode

See:IMeshModifier.

public ModifyMesh ( Mesh mesh ) : void
mesh UnityEngine.Mesh
Résultat void
        public virtual void ModifyMesh(Mesh mesh)
        {
            using (VertexHelper helper = new VertexHelper(mesh))
            {
                this.ModifyMesh(helper);
                helper.FillMesh(mesh);
            }
        }

Same methods

BaseMeshEffect::ModifyMesh ( VertexHelper vh ) : void

Usage Example

 static public int ModifyMesh(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(UnityEngine.UI.VertexHelper)))
         {
             UnityEngine.UI.BaseMeshEffect self = (UnityEngine.UI.BaseMeshEffect)checkSelf(l);
             UnityEngine.UI.VertexHelper   a1;
             checkType(l, 2, out a1);
             self.ModifyMesh(a1);
             pushValue(l, true);
             return(1);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.Mesh)))
         {
             UnityEngine.UI.BaseMeshEffect self = (UnityEngine.UI.BaseMeshEffect)checkSelf(l);
             UnityEngine.Mesh a1;
             checkType(l, 2, 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));
     }
 }
All Usage Examples Of UnityEngine.UI.BaseMeshEffect::ModifyMesh