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

Is there a way how to trigger mouse button click by script?

Discussion in 'Input System' started by URocks, May 2, 2022.

  1. URocks

    URocks

    Joined:
    May 1, 2014
    Posts:
    159
    I found out how to move the mouse by script with WarpCursorPosition, but I did not find any way how to trigger the actual left mouse button click inside the new input system?

    Can somebody help? Thanks a lot!
     
  2. dmytro_at_unity

    dmytro_at_unity

    Unity Technologies

    Joined:
    Feb 12, 2021
    Posts:
    212
    Try using QueueValueChange on the control you want to change