Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug UI Toolkit & The New Event System

Discussion in 'UI Toolkit' started by CoryMaklin, Oct 10, 2021.

  1. CoryMaklin

    CoryMaklin

    Joined:
    Oct 10, 2020
    Posts:
    29
    If I import the new input system into my project, and I have a UI Document Monobehaviour in the scene, it will throw an error until I add a "Input System Event System (UI Toolkit)".

    Once I add it, button clicked events stop working.

    I noticed the EventSystem is using its own Input Actions asset. Will that conflict with mine? I tried configuring the event system to use my Input Actions asset, but that didn't help. Am I suppose to somehow use the one included in the package?
     
  2. CoryMaklin

    CoryMaklin

    Joined:
    Oct 10, 2020
    Posts:
    29
    Turns out it had nothing to with the new input system. I was listening for the clicked event in the Awake function instead of the OnEnable function.