float The x coordinate of the right edge, measured from the lower-left corner of the parent RectTransform's rect. If there is no parent RectTransform, returns the value relative to the element's own rect origin.
Returns the x coordinate of the right edge of this RectTransform in its parent's coordinate space.
All four edge-position methods — GetLocalBottom, GetLocalTop, GetLocalLeft, and GetLocalRight — share the same coordinate system, whose origin is at the lower-left corner of the parent rect. Use SetLocalRight to move the right edge to a specific position without changing the element's size.
Additional resources: GetLocalLeft, GetLocalBottom, SetLocalRight.