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

How to migrate to new input system?

Discussion in 'UI Toolkit' started by unitydungeonmas, Nov 7, 2020.

  1. unitydungeonmas

    unitydungeonmas

    Joined:
    Sep 6, 2020
    Posts:
    37
    how do we migrate existing project to new event system for input? do we just add the new "Event System (UI Toolkit)" component to our EventSystem?

    is there a doc to setup? i have this on a Update loop:

    Code (CSharp):
    1. if (UnityEngine.Input.GetMouseButtonDown(0)) {
    2. ...
    3. }
    what does this look like in the new system?

    thanks
     
  2. unitydungeonmas

    unitydungeonmas

    Joined:
    Sep 6, 2020
    Posts:
    37
  3. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,203