Search Unity

How to make anchors show up in the editor?

Discussion in 'Editor & General Support' started by superjakey, Jun 30, 2021.

  1. superjakey

    superjakey

    Joined:
    Aug 21, 2020
    Posts:
    3
    I am struggling to find a way to make the four corner anchors show up in the editor. Is there any way to make them appear?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,742
    What anchors? You mean the ones that show when you are in RectTransform mode? That mode is enabled in the upper left corner: See buttons for Hand, Move, Rotate, Scale and Box? The RectTransform is Box.
     
  3. superjakey

    superjakey

    Joined:
    Aug 21, 2020
    Posts:
    3
    upload_2021-7-1_9-56-23.png
    As you can see, the anchors aren't showing up on this image.
    upload_2021-7-1_9-55-4.png
    Even if I set it to Rect Mode, they don't show up.
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,742
    If it is a Sprite / SpriteRenderer, you won't get anchors.

    If it is a UI.Image you will. The default position of those anchors is dead center in your viewport, which might be nowhere near the above UI.Image.

    Screen Shot 2021-07-01 at 6.30.58 AM.png

    Anchors are only visible when the object is selected.

    PS: personally I cannot work in Unity UI without this utility: I have no idea why this is not a Unity preset:

    https://gist.github.com/kurtdekker/5e64b1772443a70f0943853a91511078