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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    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:
    459
    [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