Search Unity

Question New Input System + UI Toolkit Virtual Mouse Selection

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

  1. royalewithsteez

    royalewithsteez

    Joined:
    Dec 2, 2017
    Posts:
    1
    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.