C# 클래스 uNodeEditor.GUIHelper

파일 보기 프로젝트 열기: DandyMania/uNodeEditor 1 사용 예제들

공개 메소드들

메소드 설명
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の最大値/最小値が逆転しないようにする

비공개 메소드들

메소드 설명
GUIHelper ( ) : System.Collections
Initialize ( ) : void

메소드 상세

DrawCircle() 공개 정적인 메소드

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

DrawLine() 공개 정적인 메소드

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
리턴 void

DrawRect() 공개 정적인 메소드

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

DrawText() 공개 정적인 메소드

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

Fill() 공개 정적인 메소드

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

RectAdjust() 공개 정적인 메소드

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