RectTransformExtensions

Static Class in Zigurous.UI

Declaration

public static class RectTransformExtensions

Description

Extension methods for RectTransform.

Extension Methods

GetWorldRect
SetWidthSets the width of the rect transform to the given value.
SetHeightSets the height of the rect transform to the given value.
SetLeftSets the left offset of the rect transform to the given value.
SetRightSets the right offset of the rect transform to the given value.
SetTopSets the top offset of the rect transform to the given value.
SetBottomSets the bottom offset of the rect transform to the given value.
SetAnchorMinXSets the left anchor of the rect transform to the given value.
SetAnchorMinYSets the bottom anchor of the rect transform to the given value.
SetAnchorMaxXSets the right anchor of the rect transform to the given value.
SetAnchorMaxYSets the top anchor of the rect transform to the given value.