C# 클래스 GUIDraw, Unity3D

파일 보기 프로젝트 열기: k-lock/Unity3D 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
clippingEnabled bool

보호된 프로퍼티들

프로퍼티 타입 설명
clippingBounds Rect
lineMaterial Material

공개 메소드들

메소드 설명
BeginGroup ( Rect position ) : void
DrawLine ( Vector2 pointA, Vector2 pointB, Color color ) : void
DrawRect ( Rect rect, Color color ) : void
EndGroup ( ) : void
IntersectRectangle ( Vector2 sp, Vector2 tp, Rect source ) : IntersectStruct
Intersects ( Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2 ) : IntersectStruct

보호된 메소드들

메소드 설명
clip_test ( float p, float q, float &u1, float &u2 ) : bool
segment_rect_intersection ( Rect bounds, Vector2 &p1, Vector2 &p2 ) : bool

메소드 상세

BeginGroup() 공개 정적인 메소드

public static BeginGroup ( Rect position ) : void
position Rect
리턴 void

DrawLine() 공개 정적인 메소드

public static DrawLine ( Vector2 pointA, Vector2 pointB, Color color ) : void
pointA Vector2
pointB Vector2
color Color
리턴 void

DrawRect() 공개 정적인 메소드

public static DrawRect ( Rect rect, Color color ) : void
rect Rect
color Color
리턴 void

EndGroup() 공개 정적인 메소드

public static EndGroup ( ) : void
리턴 void

IntersectRectangle() 공개 정적인 메소드

public static IntersectRectangle ( Vector2 sp, Vector2 tp, Rect source ) : IntersectStruct
sp Vector2
tp Vector2
source Rect
리턴 IntersectStruct

Intersects() 공개 정적인 메소드

public static Intersects ( Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2 ) : IntersectStruct
a1 Vector2
a2 Vector2
b1 Vector2
b2 Vector2
리턴 IntersectStruct

clip_test() 보호된 정적인 메소드

protected static clip_test ( float p, float q, float &u1, float &u2 ) : bool
p float
q float
u1 float
u2 float
리턴 bool

segment_rect_intersection() 보호된 정적인 메소드

protected static segment_rect_intersection ( Rect bounds, Vector2 &p1, Vector2 &p2 ) : bool
bounds Rect
p1 Vector2
p2 Vector2
리턴 bool

프로퍼티 상세

clippingBounds 보호되어 있는 정적으로 프로퍼티

protected static Rect clippingBounds
리턴 Rect

clippingEnabled 공개적으로 정적으로 프로퍼티

public static bool clippingEnabled
리턴 bool

lineMaterial 보호되어 있는 정적으로 프로퍼티

protected static Material lineMaterial
리턴 Material