RectTransformExtensions.SetAnchorMaxX

Extension Method in RectTransformExtensions

Declaration

public static void SetAnchorMaxX(this RectTransform rect, float maxX)

Description

Sets the right anchor of the rect transform to the given value.

Parameters

rectThe rect transform to update.
maxXThe right anchor value to set.