FairyGUI.Shape.DrawPolygon C# (CSharp) Method

DrawPolygon() public method

public DrawPolygon ( Vector2 points, Color fillColor ) : void
points UnityEngine.Vector2
fillColor UnityEngine.Color
return void
        public void DrawPolygon(Vector2[] points, Color fillColor)
        {
            _type = 3;
            _polygonPoints = points;
            _fillColor = fillColor;
            _colors = null;

            _touchDisabled = false;
            _requireUpdateMesh = true;
        }

Usage Example

 static public int DrawPolygon(IntPtr l)
 {
     try {
         FairyGUI.Shape    self = (FairyGUI.Shape)checkSelf(l);
         UnityEngine.Color a1;
         checkType(l, 2, out a1);
         UnityEngine.Vector2[] a2;
         checkArray(l, 3, out a2);
         self.DrawPolygon(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.Shape::DrawPolygon