Search Unity

Bug Events Not Working

Discussion in 'UI Toolkit' started by MousePods, Jun 22, 2021.

  1. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    811
    Hi,

    I updated to the 20201 beta 1 and now my buttons don't click. I was using this component in 20201.1.

    (I am using the New Input System and on latest version pre5)

    Screen Shot 2021-06-21 at 10.29.06 PM.png

    However, it seems to have disappeared. Is there a replacement?

    Thanks!
     
  2. uBenoitA

    uBenoitA

    Unity Technologies

    Joined:
    Apr 15, 2020
    Posts:
    220
    To work with UI Toolkit + new Input System, you have 2 choices

    1) use Unity 2021.2 with Input System 1.1.0-pre.5, and don't install the UI Toolkit package. Add an EventSystem (same as with UGUI) to your scene with the InputSystemUIInputModule component from the Input System package

    2) use the UI Toolkit package (preview 14 for now) along with the InputSystemEventSystem component. This will not work in Unity 2021.2 and more, however.

    I recommend option (1) if possible, since there are more bug fixes in the Unity 2021.2 builtin UI Toolkit than in preview 14, and also it's the pattern that we recommend for the long term.
     
    MousePods likes this.
  3. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    811
    Worked like a charm, thanks!