Search Unity

Button Sprite Swap Bug (Easily Reprouduced)

Discussion in 'UGUI & TextMesh Pro' started by yakm, Feb 24, 2015.

  1. yakm

    yakm

    Joined:
    Sep 12, 2014
    Posts:
    24
    Am i the only one who can create this bug?

    1) What happened

    Clicking a button that uses sprite swap will display the highlighted sprite until clicked somewhere else.

    2) How can we reproduce it using the example you attached

    Create new project.

    GameObject -> UI -> Button

    Set button transition to Sprite Swap.

    Set Highlighed Sprite to Knob
    Set Pressed Sprite to Checkmark

    Press Play in Editor.

    Click the created button. It will stay in highlighted sprite until clicked somewhere else.
     
  2. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,689
    Confirmed with Unity 4.6.3f1 @phil-Unity

    @yakm, best to log that using the Unity bug reporter. looks like the PointerExit event is getting missed after a click event.
     
  3. yakm

    yakm

    Joined:
    Sep 12, 2014
    Posts:
    24
    Thanks, sending a bug report
     
  4. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,689
    Great stuff @yakm although I wouldn't expect a speedy response at the mo, isn't there some sort of event happening next week :p
     
  5. yakm

    yakm

    Joined:
    Sep 12, 2014
    Posts:
    24
    haha yeah, GDC unity 5 incoming! prepare your body! I guess i send a report every week until it's fixed :)
     
  6. GiantGrey

    GiantGrey

    Joined:
    Jul 2, 2012
    Posts:
    268
    don't think this is a bug, just set the navigation property in the button component to none.
     
    ArmandTutu likes this.
  7. BorizioPT

    BorizioPT

    Joined:
    Apr 30, 2013
    Posts:
    2
    Yes, set the navigation property to none. It is not a bug.
     
    ArmandTutu likes this.