I want to find the collision UV vector of a StaticMesh, i am using Get Hit Result Under Finger For Object and so far so good, i get a result on hit and pass it to the Find Collision UV node. Now here the result is always 0.0 because the Return Value is always false. The Support UV from Hit result… from project settings is enabled.
I have done prior searching and found a similar problem but with the Get Hit Result Under Cursor node, where someone could not get the collision UV as well - and this was a listed bug supposedly to be fixed with 4.20.
In my project I used Get Hit Result Under Finger by Channel. For me, in shipping mobile build, It works only with Visibility channel, so always try to check everything in shipping configuration.
So, here is how it works. This function called in Tick and applies point damage to anything was found:
Then, interactive actor, that is expected to be hit by this, takes applied damage and calculates its collision UVs. Of course its static mesh component blocks Visibility channel.
Awesome, thank you bro, it really helped me understand how line tracing should be done. What helped me fix it was adding the LineTrace function because i wasn’t using it at all, thinking it wasn’t necessary since the GetHitResult node returns a HitResult Structure. But apparently it is needed if you want to find collision info.
Thanks again!