Search Unity

maybe bug in button with state and raycast validation

Discussion in 'UGUI & TextMesh Pro' started by Breyer, Aug 26, 2014.

  1. Breyer


    Nov 10, 2012
    First thing to ensure - highlight state in button is considered as hover right? Then

    I created custom text and button component which could create link and fire event and change color text and i will realese it ASAP in script collection (but it could be delayed due to problem with internet)

    While i developed this i found that custom button with raycaster validation ignore these validation for state transition - so if mouse is over wrong place from raycast POV (but mouse is over button's rect) button still use highlight state which look really weird

    In addition i saw that button sometime 'forgot' that my mouse exit and still use highlight state instead of normal , sometime not it seems be random

    Unfortunetly i cant submit bug due to fact i havent internet on desktop yet...

    EDIT i figured out that last 'bug' is problem from my side. First bug was solved by calling dostatetransition inside validation but i think state transition should use validation out of the box
    Last edited: Aug 26, 2014