Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

(Case 951296) Wrong nested canvas size when added dynamically as a child of another Canvas

Discussion in '2017.2 Beta' started by McKrackeN, Sep 19, 2017.

  1. McKrackeN

    McKrackeN

    Joined:
    Oct 28, 2009
    Posts:
    51
    Hi guys,

    We've been experimenting an issue with Unity 2017.2 beta 11 (we've reported it as Case 951296):

    When creating a new Canvas and setting it as child of another Canvas, it doesn't fit as supposed. I've attached an example project for you to test it.

    First try the example in 2017.1.0f3 and run it so you can see how it should behave: there should be a Canvas with another canvas as a child created on runtime and a panel inside that fits the entire screen.
    Then close Unity and open same project with 2017.2.0b11 and run the example: you'll see that the child canvas ignores the anchoring set from script.

    Do you know if this is how it should behave? Is there any workaround for this issue?

    Thanks!
     

    Attached Files: