/// <summary> /// Align the right side of the given RectTransform to the right side of this ScrollRect /// </summary> public static void RightAlign(this ScrollRect scrollRect, RectTransform targetRectTransform) { scrollRect.HorizontallyAlign(targetRectTransform, 1f); }
/// <summary> /// Horizontally align the center of the given RectTransform to the center side of this ScrollRect /// </summary> public static void HorizontallyCenter(this ScrollRect scrollRect, RectTransform targetRectTransform) { scrollRect.HorizontallyAlign(targetRectTransform, 0.5f); }