C# Класс RSTUtils.Extensions.RectExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
ClampInsideScreen ( this value ) : Rect

Clamps the rectangle inside the screen region.

ClampToScreen ( this value, float margin = 25.0f ) : 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.

Translate ( this value, Rect rectangle ) : Rect

Описание методов

ClampInsideScreen() публичный статический Метод

Clamps the rectangle inside the screen region.
public static ClampInsideScreen ( this value ) : Rect
value this
Результат UnityEngine.Rect

ClampToScreen() публичный статический Метод

Clamps the rectangle into the screen region by the specified margin.
public static ClampToScreen ( this value, float margin = 25.0f ) : Rect
value this
margin float
Результат UnityEngine.Rect

MouseIsOver() публичный статический Метод

Returns whether the mouse is within the coordinates of this rectangle.
public static MouseIsOver ( this value ) : bool
value this
Результат bool

Translate() публичный статический Метод

public static Translate ( this value, Rect rectangle ) : Rect
value this
rectangle UnityEngine.Rect
Результат UnityEngine.Rect