Hello !
Currently I use Unity 5.4.1f1-GVR7 To create a small game with VR HTC Vive Controller . But I have a problem with “device.GetTouchDown(SteamVR_Controller.ButtonMask.Trigger)” use in OnTriggerStay() That it is not Run Only one frame; This is my code:
private void OnTriggerStay(Collider other)
{
if (other.tag == "Oar")
{
if (device.GetTouchDown(SteamVR_Controller.ButtonMask.Trigger))
{
isCaughtOar = !isCaughtOar;
print(isCaughtOar);
}
}
}
Out put:
True
False
But I need only One Frame, So What’s wrong with this and How can I do?
Thank you Advance !