Skip to content

Instantly share code, notes, and snippets.

@0V
Created August 24, 2018 14:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 0V/8b72411ef4f1c7159d4c3df2c3c66012 to your computer and use it in GitHub Desktop.
Save 0V/8b72411ef4f1c7159d4c3df2c3c66012 to your computer and use it in GitHub Desktop.
var controller = GetComponent<SteamVRInputRx>();
controller.ControllerState
.Where(s => s == SteamVRControllerState.TriggerPressDown)
.Subscribe(_ =>
{
// Triggerが引かれたら何かをする
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment