Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Deactivating and Activating Canvas makes inputing break

Discussion in 'UGUI & TextMesh Pro' started by EDevJogos, Jul 28, 2022.

  1. EDevJogos

    EDevJogos

    Joined:
    Jul 24, 2014
    Posts:
    75
    Recently i've updated my project to unity version 2021.3.6F1, before i was using 2021.2.

    After this update whenever i deactivated and activeted my canvas the mouse input wouldn't work anymore.

    I have my canvases set up like this:

    Main Canvas
    - [Childs of Main]
    - Intro Canvas
    - HUD Canvas
    ...

    I alternate between canvas by enabling and disabling the canvas component.

    Couldn't figure what is the real issue, i found a workaround that is disabling and after a frame enabling the sortingOverride, for some reason when i do this everything works fine.

    Is this a bug? Was there something new on this new version that when i deactive and active a canvas it won't update fully.
     
  2. doseon

    doseon

    Joined:
    Mar 17, 2021
    Posts:
    39
    If it's the same issue, I think it's currently registered.

    Unity Issue Tracker - UI becomes not interactable after deactivating and reactivating Canvas (unity3d.com)
     
    EDevJogos likes this.