Trying to add some code to my player controller for clicking game objects (I cannot put them in the individual objects).
I have a click event which fires on click/touch. The “Pressed” event uses “Get Hit Result Under Finger by Channel,” and it correctly finds the right object and returns them.
However, how can I get these results on a “Released” event? Since there is no click/finger active the trace always returns zero results. Any ideas?
What I want is:
- User presses the button, find an actor, do stuff
- User releases the button, find a different actor, do different stuff