C# Class RectDrawer, ES2015F

Inheritance: MonoBehaviour
Afficher le fichier Open project: jgirald/ES2015F Class Usage Examples

Méthodes publiques

Méthode Description
DrawScreenRect ( Rect rect, Color color ) : void
DrawScreenRectBorder ( Rect rect, float thickness, Color color ) : void
GetScreenRect ( Vector3 screenPosition1, Vector3 screenPosition2 ) : Rect
GetViewportBounds ( Camera camera, Vector3 screenPosition1, Vector3 screenPosition2 ) : Bounds

Private Methods

Méthode Description
Start ( ) : void
Update ( ) : void

Method Details

DrawScreenRect() public static méthode

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

DrawScreenRectBorder() public static méthode

public static DrawScreenRectBorder ( Rect rect, float thickness, Color color ) : void
rect Rect
thickness float
color Color
Résultat void

GetScreenRect() public static méthode

public static GetScreenRect ( Vector3 screenPosition1, Vector3 screenPosition2 ) : Rect
screenPosition1 Vector3
screenPosition2 Vector3
Résultat Rect

GetViewportBounds() public static méthode

public static GetViewportBounds ( Camera camera, Vector3 screenPosition1, Vector3 screenPosition2 ) : Bounds
camera Camera
screenPosition1 Vector3
screenPosition2 Vector3
Résultat Bounds