C# Class uNodeEditor.GUIHelper

Show file Open project: DandyMania/uNodeEditor Class Usage Examples

Public Methods

Method Description
DrawCircle ( Vector2 center, float radius, Color color ) : void
DrawLine ( Vector2 lineStart, Vector2 lineEnd, Color color, int thickness = 1, bool antiAlias = false ) : void

http://forum.unity3d.com/threads/17066-How-to-draw-a-GUI-2D-quot-line-quot?p=407005&viewfull=1#post407005 →処理ちょっと重かったので、yoyo氏のに変更 http://forum.unity3d.com/threads/71979-Drawing-lines-in-the-editor

DrawRect ( Rect rect, Color color, int thickness = 1 ) : void

DrawText ( Vector2 pos, string text, Color color, int size = 12 ) : void
Fill ( Rect rect, Color color ) : void

矩形塗りつぶし

RectAdjust ( Rect &rect ) : void

Rectの最大値/最小値が逆転しないようにする

Private Methods

Method Description
GUIHelper ( ) : System.Collections
Initialize ( ) : void

Method Details

DrawCircle() public static method

public static DrawCircle ( Vector2 center, float radius, Color color ) : void
center UnityEngine.Vector2
radius float
color UnityEngine.Color
return void

DrawLine() public static method

http://forum.unity3d.com/threads/17066-How-to-draw-a-GUI-2D-quot-line-quot?p=407005&viewfull=1#post407005 →処理ちょっと重かったので、yoyo氏のに変更 http://forum.unity3d.com/threads/71979-Drawing-lines-in-the-editor
public static DrawLine ( Vector2 lineStart, Vector2 lineEnd, Color color, int thickness = 1, bool antiAlias = false ) : void
lineStart UnityEngine.Vector2
lineEnd UnityEngine.Vector2
color UnityEngine.Color
thickness int
antiAlias bool
return void

DrawRect() public static method

public static DrawRect ( Rect rect, Color color, int thickness = 1 ) : void
rect UnityEngine.Rect
color UnityEngine.Color
thickness int
return void

DrawText() public static method

public static DrawText ( Vector2 pos, string text, Color color, int size = 12 ) : void
pos UnityEngine.Vector2
text string
color UnityEngine.Color
size int
return void

Fill() public static method

矩形塗りつぶし
public static Fill ( Rect rect, Color color ) : void
rect UnityEngine.Rect
color UnityEngine.Color
return void

RectAdjust() public static method

Rectの最大値/最小値が逆転しないようにする
public static RectAdjust ( Rect &rect ) : void
rect UnityEngine.Rect
return void