I’m trying to create an interaction where you’d press a UI button without releasing to drag out an object to place into the 3D scene.
The UI button will call an event to spawn an object when the button is pressed.
Once the button is pressed, the GetHitResult node is then used to get the current raycasted position in the scene from where the mouse is at.
This is the graph in the UI widget blueprint:
And this is the event being called from the UI widget being pressed:
The current issue is, the position of GetHitResult doesn’t update if I press the UI button and do not release aka ‘holding on to the button’ while moving my mouse in the scene. Only if I click the button then release and then move around in the scene, will the GetHitResult start to update position values.
Would anyone know why this has to be the way? Im guessing it’s the UI button overwriting the gethitresult triggers? Would anyone know how to get the desired result of holding onto a button while being able to update traced positions?
Im a newbie to unreal and have been stuck on this for a long time… any suggestion welcome!!