C# Class Engineer.Extensions.RectExtensions

Afficher le fichier Open project: CYBUTEK/Engineer

Méthodes publiques

Méthode Description
ClampInsideScreen ( this value ) : Rect

Clamps the rectangle inside the screen region.

ClampToScreen ( this value, float margin = 25f ) : Rect

Clamps the rectangle into the screen region by the specified margin.

MouseIsOver ( this value ) : bool

Returns whether the mouse is within the coordinates of this rectangle.

Method Details

ClampInsideScreen() public static méthode

Clamps the rectangle inside the screen region.
public static ClampInsideScreen ( this value ) : Rect
value this
Résultat UnityEngine.Rect

ClampToScreen() public static méthode

Clamps the rectangle into the screen region by the specified margin.
public static ClampToScreen ( this value, float margin = 25f ) : Rect
value this
margin float
Résultat UnityEngine.Rect

MouseIsOver() public static méthode

Returns whether the mouse is within the coordinates of this rectangle.
public static MouseIsOver ( this value ) : bool
value this
Résultat bool