Get Hit Result on button Release?

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:

  1. User presses the button, find an actor, do stuff
  2. User releases the button, find a different actor, do different stuff

Have you tried saving the result of the trace hit in a variable?
You can split the struct pin of the hit and save the Hit Result Hit Actor in a variable which you can access later.