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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Nested canvas anchor resets

Discussion in 'UGUI & TextMesh Pro' started by iivo_k, Jan 19, 2015.

  1. iivo_k

    iivo_k

    Joined:
    Jan 28, 2013
    Posts:
    314
    I have ParentCanvas -> Panel1 -> ChildCanvas -> Panel2 structure in a scene with the ChildCanvas and Panel2 RectTransforms set to stretch. If I disable and re-enable the ParentCanvas object, the ChildCanvas' anchor resets to bottom left and the size changes to something completely different.

    The reason for the ChildCanvas was that I wanted to override the sorting order to have child object appear behind the parent, but that doesn't seem to work.

    I created a bug report, number 664651.

    Edit: using 4.6.1.p4
     
  2. iivo_k

    iivo_k

    Joined:
    Jan 28, 2013
    Posts:
    314
  3. Agent654

    Agent654

    Joined:
    Dec 11, 2012
    Posts:
    8
    This appears to have come back in 5.2.0f3 - I opened a project that was working fine to suddenly be accosted by this little jerk of a bug.

    Doesn't matter how many times I "set" my pivot or anchor position, they'll all reset the moment I either press play, or re-open the project.

    Frustrating...