Player.Interactions | Add a Click-Up-Event
Summary
Currently, only the Click-Up-Event cannot be registered. Therefore we wait in random nodes, to guarantee that the user has released the button. This behavior is not deterministic.
Problem or need
Having an Event for the Click-Up would simplify many nodes and make code more readable and deterministic.
Proposed solution
We need to add the Click-Up-Event to the XRGrabInteractableManaged to "OnActivatedExit" and link the event with the the normal player interaction code.
Tasks:
The following edge cases should be tested:
-
If we click down and release on the same object in VR, the release event should be triggered. -
If we click down and release on the same object in Desktop, the release event should be triggered. -
If we click down on an object and do not release and move away from the object does the release event register and is this behavior correct? -
We need to test click, release and oneshot-Nodes for feel and adjust their parameters.
Edited by Christian Dominic