C# Class GUIDraw, Unity3D

Mostrar archivo Open project: k-lock/Unity3D Class Usage Examples

Public Properties

Property Type Description
clippingEnabled bool

Protected Properties

Property Type Description
clippingBounds Rect
lineMaterial Material

Public Methods

Method Description
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

Protected Methods

Method Description
clip_test ( float p, float q, float &u1, float &u2 ) : bool
segment_rect_intersection ( Rect bounds, Vector2 &p1, Vector2 &p2 ) : bool

Method Details

BeginGroup() public static method

public static BeginGroup ( Rect position ) : void
position Rect
return void

DrawLine() public static method

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

DrawRect() public static method

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

EndGroup() public static method

public static EndGroup ( ) : void
return void

IntersectRectangle() public static method

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

Intersects() public static method

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

clip_test() protected static method

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

segment_rect_intersection() protected static method

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

Property Details

clippingBounds protected_oe static_oe property

protected static Rect clippingBounds
return Rect

clippingEnabled public_oe static_oe property

public static bool clippingEnabled
return bool

lineMaterial protected_oe static_oe property

protected static Material lineMaterial
return Material