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

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

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

Метод Описание
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.

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

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 = 25f ) : 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