Search Issue Tracker

Fixed in Unity 5.6.0

Votes

21

Found in

5.5.1p1

Issue ID

877022

Regression

No

When a button's interactability is re-enabled, it's "Highlighted" trigger is called instead of "Normal"

UI

-

-

Priority: 4Not yet prioritized for a release

-

Severity: 2No workaround

Steps to reproduce:
1. Download and open the attached project
2. Enter playmode
3. Press any button
4. Press any other button

Expected result: all buttons except the last pressed are set to Normal
Actual result: previously pressed buttons are set to Highlighted

Reproduced on 5.3.7p2, 5.4.4p1. 5.5.1p2, 5.6.0b6

notes:
-Hovering over and out of the button resets is to "Normal" again

Comments (13)

  1. 55c1d9427da4b17b510f4fac777b7ecb?d=mm

    ainsbot

    Nov 18, 2017 17:03

    bug is not fixed

  2. E59cc2910611c3c46894ef12e581d86a?d=mm

    devcol

    Nov 11, 2017 18:49

    This is most definitely still an issue. Happens in the tutorial at 21:34, https://youtu.be/pgtZLc-gTEk?t=1293

  3. Fbe0c1504b1afc2f58bb2c1fe3603cca?d=mm

    jmiguelhdez

    Oct 21, 2017 00:29

    this is still an open issue, why it says fixed?
    should we create a new bug report?

  4. 6ae7bc4a8a8378cdb27559a28ccafce9?d=mm

    zorkwarrior

    Sep 25, 2017 07:57

    Read this hack on the forum (short and sweet) :

    https://forum.unity.com/threads/clicking-a-button-leaves-it-in-mouseover-state.285167/

    button.enabled = false;
    button.enabled = true;

    Who knows what side effects this may have, but it works without a huge workaround.

    Another way would be to create a new class that inherits from Button and override the OnSelect() method as such:

    public override void OnSelect (BaseEventData eventData)
    {
    print (this.gameObject.name + " selected!");
    InstantClearState();
    }

    ...though I don't know if I'm eliminating any crucial behaviours. It does still call the method on attached to my onClick event.

  5. 6ae7bc4a8a8378cdb27559a28ccafce9?d=mm

    zorkwarrior

    Sep 25, 2017 06:47

    Using 2017.1.1f1 Personal and this is still happening. Granted, I'm new to programming but this seems incredibly odd as a default behaviour. There seems to be some workarounds, but apparently this hasn't actually been addressed despite the big green bar at the top of this page that says "Fixed in Unity 5.6.0".

    "Mission Accomplished" guys?

  6. Cb82ae77b5ee0841ab9b7446b1d6146c?d=mm

    adamjoyce

    Jun 11, 2017 14:07

    Not fixed in Unity 5.6.1f1 Personal 64bit as of 11/06/2017.

    I agree with THEWANDERINGBEN's comment above - this is a common problem that occurs in multiple beginner tutorials such as the TicTacToe UI tutorial. Beginners are likely to have significantly difficulty implementing a work-around.

  7. 638bffcb8cbb3a315cd68128ade5d540?d=mm

    mcaulish

    May 06, 2017 13:43

    This bug isn't solved. It still occurs in Unity 5.6.0f3 (64-bit).
    (You can reproduce it just by doing the 9/16/2016 Live training "Polishing your main menu" by Matthew Schell)

  8. 1e606a97a2318bb2ae7c5b8ab0f47ac4?d=mm

    NioFox

    May 04, 2017 16:31

    I am using Unity 5.6.0f3 and this issue still persists for me :(

  9. 032d8debdecdda1f8424e2fc23d93d23?d=mm

    Reshima

    Apr 28, 2017 05:30

    It says that this was fixed in 5.6.0, I'm using Unity 2017.1.0b2 (April 25, 2017) and I still see this issue.

  10. 8d05ac0db7535f04cb37761c33b063d1?d=mm

    SV_LUBIN_FFS

    Mar 23, 2017 11:44

    Sorry for my last comment, not this issue

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.