UnityEngine.UI.Shadow.ModifyMesh C# (CSharp) Method

ModifyMesh() public method

public ModifyMesh ( VertexHelper vh ) : void
vh VertexHelper
return void
        public override void ModifyMesh(VertexHelper vh)
        {
            if (this.IsActive())
            {
                List<UIVertex> stream = ListPool<UIVertex>.Get();
                vh.GetUIVertexStream(stream);
                this.ApplyShadow(stream, this.effectColor, 0, stream.Count, this.effectDistance.x, this.effectDistance.y);
                vh.Clear();
                vh.AddUIVertexTriangleStream(stream);
                ListPool<UIVertex>.Release(stream);
            }
        }

Usage Example

Esempio n. 1
0
 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.Shadow       self = (UnityEngine.UI.Shadow)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.Shadow self = (UnityEngine.UI.Shadow)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));
     }
 }
All Usage Examples Of UnityEngine.UI.Shadow::ModifyMesh