Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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.