Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Anchor widget not showing up in Rect Transform inspector

Discussion in 'UGUI & TextMesh Pro' started by Ewanuk, Sep 9, 2014.

  1. Ewanuk

    Ewanuk

    Joined:
    Jul 9, 2011
    Posts:
    257
    For the life of me, I can't figure out why this widget isn't showing up for me.

    See attached, it's just an inactive square for me.

    Any thoughts?
     

    Attached Files:

  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,181
    If it's a driven RectTransform you won't see the widget.
     
  3. Ewanuk

    Ewanuk

    Joined:
    Jul 9, 2011
    Posts:
    257
    What do you mean by "driven RectTransform"?
     
  4. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,870
    Sorry, there was some confusion here. This RectTransform is not driven. (For reference, driven RectTransforms are described on this page: http://docs.unity3d.com/460/Documentation/Manual/UIAutoLayout.html)

    However, as its parent Game Object doesn't have a RectTransform too, there is no parent rect to anchor to, which means the anchors are pointless and aren't shown.
     
    Tchotchke9366 and emredesu like this.
  5. Ewanuk

    Ewanuk

    Joined:
    Jul 9, 2011
    Posts:
    257
    Derp, that makes sense.

    Thank you for your help.
     
  6. gaggibueb

    gaggibueb

    Joined:
    Nov 17, 2017
    Posts:
    3
    I know it is an old post, but i'm experiencing the same problem.
    All my parent objects do have a rect transform (except the "driven" Canvas) but i can't see any anchors if i child my new buttons to any other UI element with a rect transform. Before i made them a child, the anchors were visible, but afterwards they disappeared.
    I googled a lot, and none of the different "solutions" worked for me. I tried:
    - Layer to Default
    - Inspector to Normal (Some say anchors disappear in Debug Mode)
    - Restarting Unity
    - Restarting PC

    I need the anchors for "InfoHeader" which is a child to "InfoButton". The Inspector image shows the parents settings, meaning those from "InfoButton".

    Any other tipps or hints to to solve this? Many thanks for any answers!
    Cheers
     

    Attached Files: