Search Unity

Unity 5.2 - Button with Canvas component not rendering in the scene

Discussion in 'UGUI & TextMesh Pro' started by andrei_filip, Sep 22, 2015.

  1. andrei_filip

    andrei_filip

    Joined:
    Mar 30, 2015
    Posts:
    7
    Hi,

    I have a problem with the Canvas component attached to button that is bellow the view when the scene is started. The button starts moving into the view when the scene is started (that's how it worked before the 5.2 update). Now after the update i can see the bounds of the button move but not the graphic itself (the graphic remains bellow the view).The graphic suddenly appears on screen when the button's rect is fully on screen.
    Any idea why is this happening?
    PS: removing the canvas component fixes this issue but i need it for sorting purposes.

    Thanks,
    Andrei
     
  2. heritagedevelopment

    heritagedevelopment

    Joined:
    Mar 30, 2015
    Posts:
    7
    Bump same in 5.2.1 p3
     
  3. phil-Unity

    phil-Unity

    Unity UI Lead Developer

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    This issue was originally fixed for p3 but cause a bunch of other errors so was removed. A new fix has been created that doesnt cause any other issues. Not sure when/ if it would make it to a patch release.
     
  4. heritagedevelopment

    heritagedevelopment

    Joined:
    Mar 30, 2015
    Posts:
    7
    @phil-Unity Any workaround for this? Tried forcing canvas update but no luck.
     
  5. phil-Unity

    phil-Unity

    Unity UI Lead Developer

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    Somehow the canvas needs to be dirtied. Move a child of the canvas is the easiest.