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 Can you manually trigger an input action from a script?

Discussion in 'XR Interaction Toolkit and Input' started by yulaw2k, Dec 8, 2022.

  1. yulaw2k

    yulaw2k

    Joined:
    Apr 25, 2014
    Posts:
    31
    I would like to make a script, where I am either using Odin, or Naughty Attributes [Button] on methods to call something like

    ClickYButton() or something like PullRightTriggerDown();

    That way I can test interactions without having to put on a Virtual reality headset.

    Anybody have an idea of how I can accomplish this?
     
  2. PatHightreeXVR

    PatHightreeXVR

    Joined:
    Dec 10, 2018
    Posts:
    19
  3. pikohaisha

    pikohaisha

    Joined:
    Jul 14, 2020
    Posts:
    1
    Did it help? I need the same thing done ^^