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

Question New Input System + UI Toolkit Virtual Mouse Selection

Discussion in 'Scripting' started by royalewithsteez, May 18, 2023.

  1. royalewithsteez


    Dec 2, 2017
    Hello! I'm unable to get the virtual mouse pointer Hover / Focus states using the new input system and UI Toolkit.

    The system mouse responds correctly to all UI elements, and the virtual mouse cursor moves a UI element in a standalone UI layout which responds correctly with the correct coordinates.

    Unfortunately, the virtual mouse cursor is unable to select anything using the VirtualMouse component.
    When specifying virtual mouse positioning in code, the button is focusable but flickers on selection and does not retain focus/hover.

    Has anyone had this issue before / dealt with a solution?
    paolo-rebelpug likes this.