FairyGUI.GGraph.DrawRect C# (CSharp) 메소드

DrawRect() 공개 메소드

Draw a rectangle. 画矩形。
public DrawRect ( float aWidth, float aHeight, int lineSize, Color lineColor, Color fillColor ) : void
aWidth float Width
aHeight float Height
lineSize int Line size
lineColor Color Line color
fillColor Color Fill color
리턴 void
        public void DrawRect(float aWidth, float aHeight, int lineSize, Color lineColor, Color fillColor)
        {
            this.SetSize(aWidth, aHeight);
            this.shape.DrawRect(lineSize, lineColor, fillColor);
        }

Usage Example

예제 #1
0
 void CreateModalLayer()
 {
     _modalLayer = new GGraph();
     _modalLayer.DrawRect(this.width, this.height, 0, Color.White, UIConfig.modalLayerColor);
     _modalLayer.AddRelation(this, RelationType.Size);
     _modalLayer.name = "ModalLayer";
 }
All Usage Examples Of FairyGUI.GGraph::DrawRect