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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. 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:
    73
    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:
    38
    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.