How to drag an object with touch input?
I'm trying to have it so I can drag an object using my finger on a touch device. I've followed this tutorial (https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/MouseInterface/BlueprintActors/index.html) and then also tried the last comment from this thread (https://answers.unrealengine.com/questions/36186/move-mesh-on-x-axisaccording-to-the-touched-locati.html).
But both cause the same issue, instead of the object dragging it moves by one whenever I click on it and if I attempt to drag it then it moves to 0,0,0.
Below is my blueprint, it's pretty much an exact copy of the one in the Unreal doc tutorial. Any help would be really appreciated.
asked Apr 08 '16 at 02:25 PM in Blueprint Scripting
Regarding your current implementation, I'm wondering if the "Get Hit Result Under Finger by Channel" is actually returning anything. Have you run the hit result through an "IsValid?" node to make sure you're actually hitting something?
Regarding the task in general, if you have access to a TouchInterface, you could try using the "Create Drag Drop Operation" node. That may be a lot simpler if it works.
answered Apr 08 '16 at 10:15 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here