[Solved]How to trigger XR actions programmatically - XR Interaction Toolkit

Hi,

I would like to programmatically trigger different XR input actions (e.g., click, grip) from scripts when using XR Interaction Toolkit. I am also using XR Device Simulator.

By reading the source code a little bit, I only found the listeners that are called when having XR input actions but can’t find code related to actually trigger the actions.

I’ve figured this out, here is the link XR Interaction Toolkit — Programmatically Trigger XR Interactions | by Ruizhen Gu | Feb, 2025 | Medium of the solution if anyone is interested