Search Unity

Button sprite swap behavior change?

Discussion in 'UIElements' started by triple_why, May 26, 2019.

  1. triple_why

    triple_why

    Joined:
    Jun 9, 2018
    Posts:
    7
    Hello,

    On Unity 2019.1, I noticed a different behavior of buttons with sprite swap transition. On previous versions, when I click (or tap on mobile) and hold, and slide pointer (mouse/finger) outside of button area, button sprite was going back to default sprite from pressed sprite. And when I slide inside again, button sprite was setting to pressed sprite again.

    But on 2019.1, moving pointer outside and inside of the button while holding the pointer making no effect on it's sprite, remaining at pressed state, until I release pointer.

    So, is this an intentional and permanent behavior change? I'm asking because if that is the case, I have to change text-positioning code of my buttons, since I'm moving text on pressed/unpressed states.

    Thanks,
    Yasar
     
  2. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    169