Search Unity

Bug Updateing a buttons pickingMode needs a mouse move to take effect

Discussion in 'UI Toolkit' started by manuelgoellnitz, Jun 21, 2021.

  1. manuelgoellnitz

    manuelgoellnitz

    Joined:
    Feb 15, 2017
    Posts:
    397
    UIToolkit 1.0.0-preview14, Unity 2021.1.7
    I have a couple of buttons like a Tab-Menu. I don't wont the user to klick on the allready active tab. So when the user klicks on the button i set it's "pickingMode" to "ignore".

    When I click on the button, don't move the mouse and klick on it again, the click is recognized.
    When I clich on the button, move the mouse a bit and klick it again, the click is not recognized, aka pickingMode=ignore works now.
     
    HugoBD-Unity likes this.
  2. HugoBD-Unity

    HugoBD-Unity

    Unity Technologies

    Joined:
    May 14, 2018
    Posts:
    499
    Hi @manuelgoellnitz !

    This isn't a known issue, could you please log a bug through the Unity bug reporter? (Help / Report a bug...)
    Thanks for bringing this up!