C# Класс UnityEngine.RectTransform

Position, size, anchor and pivot information for a rectangle.

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

Private Properties

Свойство Тип Описание
GetParentSize Vector2
GetRectInParentSpace Rect
INTERNAL_get_anchorMax void
INTERNAL_get_anchorMin void
INTERNAL_get_anchoredPosition void
INTERNAL_get_pivot void
INTERNAL_get_rect void
INTERNAL_get_sizeDelta void
INTERNAL_set_anchorMax void
INTERNAL_set_anchorMin void
INTERNAL_set_anchoredPosition void
INTERNAL_set_pivot void
INTERNAL_set_sizeDelta void
SendReapplyDrivenProperties void

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

Метод Описание
GetLocalCorners ( Vector3 fourCornersArray ) : void

Get the corners of the calculated rectangle in the local space of its Transform.

GetWorldCorners ( Vector3 fourCornersArray ) : void

Get the corners of the calculated rectangle in world space.

SetInsetAndSizeFromParentEdge ( System.Edge edge, float inset, float size ) : void
SetSizeWithCurrentAnchors ( Axis axis, float size ) : void

Приватные методы

Метод Описание
GetParentSize ( ) : Vector2
GetRectInParentSpace ( ) : Rect
INTERNAL_get_anchorMax ( Vector2 &value ) : void
INTERNAL_get_anchorMin ( Vector2 &value ) : void
INTERNAL_get_anchoredPosition ( Vector2 &value ) : void
INTERNAL_get_pivot ( Vector2 &value ) : void
INTERNAL_get_rect ( Rect &value ) : void
INTERNAL_get_sizeDelta ( Vector2 &value ) : void
INTERNAL_set_anchorMax ( Vector2 &value ) : void
INTERNAL_set_anchorMin ( Vector2 &value ) : void
INTERNAL_set_anchoredPosition ( Vector2 &value ) : void
INTERNAL_set_pivot ( Vector2 &value ) : void
INTERNAL_set_sizeDelta ( Vector2 &value ) : void
SendReapplyDrivenProperties ( RectTransform driven ) : void

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

GetLocalCorners() публичный Метод

Get the corners of the calculated rectangle in the local space of its Transform.

public GetLocalCorners ( Vector3 fourCornersArray ) : void
fourCornersArray Vector3 Array that corners should be filled into.
Результат void

GetWorldCorners() публичный Метод

Get the corners of the calculated rectangle in world space.

public GetWorldCorners ( Vector3 fourCornersArray ) : void
fourCornersArray Vector3 Array that corners should be filled into.
Результат void

SetInsetAndSizeFromParentEdge() публичный Метод

public SetInsetAndSizeFromParentEdge ( System.Edge edge, float inset, float size ) : void
edge System.Edge
inset float
size float
Результат void

SetSizeWithCurrentAnchors() публичный Метод

public SetSizeWithCurrentAnchors ( Axis axis, float size ) : void
axis Axis
size float
Результат void