C# Класс RectExtension, UnityToolbag

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetRectAsLocal ( this target, RectTransform other, Camera cam = null ) : Rect

Get other RectTransform as a Rect in local space of this RectTransform

GetScreenRect ( this target, Camera cam = null ) : Rect
ScreenAlign ( this input, SpriteAlignment align ) : Rect

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

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

Get other RectTransform as a Rect in local space of this RectTransform
public static GetRectAsLocal ( this target, RectTransform other, Camera cam = null ) : Rect
target this
other UnityEngine.RectTransform
cam Camera
Результат Rect

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

public static GetScreenRect ( this target, Camera cam = null ) : Rect
target this
cam Camera
Результат Rect

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

public static ScreenAlign ( this input, SpriteAlignment align ) : Rect
input this
align SpriteAlignment
Результат Rect