C# Class GUIDraw, Unity3D

Afficher le fichier Open project: k-lock/Unity3D Class Usage Examples

Méthodes publiques

Свойство Type Description
clippingEnabled bool

Protected Properties

Свойство Type Description
clippingBounds Rect
lineMaterial Material

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

public static BeginGroup ( Rect position ) : void
position Rect
Résultat void

DrawLine() public static méthode

public static DrawLine ( Vector2 pointA, Vector2 pointB, Color color ) : void
pointA Vector2
pointB Vector2
color Color
Résultat void

DrawRect() public static méthode

public static DrawRect ( Rect rect, Color color ) : void
rect Rect
color Color
Résultat void

EndGroup() public static méthode

public static EndGroup ( ) : void
Résultat void

IntersectRectangle() public static méthode

public static IntersectRectangle ( Vector2 sp, Vector2 tp, Rect source ) : IntersectStruct
sp Vector2
tp Vector2
source Rect
Résultat IntersectStruct

Intersects() public static méthode

public static Intersects ( Vector2 a1, Vector2 a2, Vector2 b1, Vector2 b2 ) : IntersectStruct
a1 Vector2
a2 Vector2
b1 Vector2
b2 Vector2
Résultat IntersectStruct

clip_test() protected static méthode

protected static clip_test ( float p, float q, float &u1, float &u2 ) : bool
p float
q float
u1 float
u2 float
Résultat bool

segment_rect_intersection() protected static méthode

protected static segment_rect_intersection ( Rect bounds, Vector2 &p1, Vector2 &p2 ) : bool
bounds Rect
p1 Vector2
p2 Vector2
Résultat bool

Property Details

clippingBounds protected_oe static_oe property

protected static Rect clippingBounds
Résultat Rect

clippingEnabled public_oe static_oe property

public static bool clippingEnabled
Résultat bool

lineMaterial protected_oe static_oe property

protected static Material lineMaterial
Résultat Material