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. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. 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

UI [resolved] Deactivated button stealing click event callback from active one

Discussion in '5.3 Beta' started by chrismarch, Dec 7, 2015.

  1. chrismarch

    chrismarch

    Joined:
    Jul 24, 2013
    Posts:
    472
    [Edit: never mind, there is a new issue with scene unloading]

    We have 2 buttons stacked on top of each other. One is always deactivated. In 5.1.1f1 we do this so that we can toggle the button appearance. In 5.3.0f2 we can get into a state where the deactivated button receives a click callback but the activated one does not. Was there an API change with events and deactivated objects?

    We deactivate the parent of the buttons, not the buttons themselves.
     
    Last edited: Dec 7, 2015