C# Class RectDrawer, ES2015F

Inheritance: MonoBehaviour
显示文件 Open project: jgirald/ES2015F Class Usage Examples

Public Methods

Method 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

Method Description
Start ( ) : void
Update ( ) : void

Method Details

DrawScreenRect() public static method

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

DrawScreenRectBorder() public static method

public static DrawScreenRectBorder ( Rect rect, float thickness, Color color ) : void
rect Rect
thickness float
color Color
return void

GetScreenRect() public static method

public static GetScreenRect ( Vector3 screenPosition1, Vector3 screenPosition2 ) : Rect
screenPosition1 Vector3
screenPosition2 Vector3
return Rect

GetViewportBounds() public static method

public static GetViewportBounds ( Camera camera, Vector3 screenPosition1, Vector3 screenPosition2 ) : Bounds
camera Camera
screenPosition1 Vector3
screenPosition2 Vector3
return Bounds