Options
All
  • Public
  • Public/Protected
  • All
Menu

Defines the position, size, anchor and pivot information for a rectangle.

Hierarchy

Index

Constructors

constructor

Properties

anchorMax

anchorMax: Vector2

The normalized position in the parent RectTransform that the upper right corner of the rectangle is anchored to.

anchorMin

anchorMin: Vector2

The normalized position in the parent RectTransform that the lower left corner of the rectangle is anchored to.

anchoredPosition

anchoredPosition: Vector2

The position of this RectTransform's pivot of relative to the anchor reference point.

pivot

pivot: Vector2

The normalized position in this RectTransform that it rotates around.

sizeDelta

sizeDelta: Vector2

The size of this RectTransform relative to the distances between the anchors. If the anchors are together, sizeDelta is the same as size. If the anchors are in each of the four corners of the parent, the sizeDelta is how much bigger or smaller the rectangle is compared to its parent.

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static anchorMax

Static anchorMin

Static anchoredPosition

anchoredPosition: Vector2ComponentFieldDesc

Static cid

cid: number

Static pivot

Static sizeDelta

Methods

Static _dtorFn

  • Parameters

    Returns void

Static _fromPtr

Static _tempHeapPtr

  • Parameters

    Returns number

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc