Skip to content

Latest commit

 

History

History
91 lines (59 loc) · 2.33 KB

File metadata and controls

91 lines (59 loc) · 2.33 KB

uGUITools

A collection of functions to assist with managing anchors on RectTransforms


Contents

1 Overview

2 Properties

3 Methods

4 Usage

5 Video Demo

6 See also

7 Credits and Donation

8 External links


Overview

A useful set of tools to manipulate RectTransforms to its Anchors, or Adjusts the Anchors to the selected RectTransform.


Properties

These are editor menu utilities and expose no inspector properties.


Methods

Method Arguments Description
Anchors to Corners Selected RectTransform Moves anchors to the corners of the rect.
Corners to Anchors Selected RectTransform Moves corners of the rect to the anchor positions.
Mirror Horizontally around Anchors Selected RectTransform Flips anchors horizontally on the rect.
Mirror Horizontally around Parent Center Selected RectTransform Flips anchors horizontally relative to parent center.
Mirror Vertically around Anchors Selected RectTransform Flips anchors vertically on the rect.
Mirror Vertically around Parent Center Selected RectTransform Flips anchors vertically relative to parent center.

Usage

Simply select a RectTransform in the Scene or Hierarchy views and use the menu options to affect the RectTransforms anchors:

  • Anchors to Corners - Moves the Anchors to the corners of the RectTransform
  • Corners to Anchors - Moves the corners of the RectTransform to the Anchor positions
  • Mirror Horizontally around Anchors - Flips the Anchors horizontally on this RectTransform (reverses content)
  • Mirror Horizontally around Parent Center - Flips the Anchors horizontally based on the parent RectTransform
  • Mirror Vertically around Anchors - Flips the Anchors vertically on this RectTransform (reverses content)
  • Mirror Vertically around Parent Center - Flips the Anchors vertically based on the parent RectTransform

Video Demo

N/A


See also

N/A


Credits and Donation

  • Senshi

External links

"List of links for the control, e.g. Source, other info"

Sourced From