Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Find Collision UV not working with Get Hit Result Under Finger


Regarding a mobile game project:

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.

Thanks in advance, Kevin

Product Version: UE 4.21
more ▼

asked Dec 11 '18 at 09:44 PM in Blueprint Scripting

avatar image

3 1 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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:

alt text

alt text

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.

alt text

more ▼

answered Dec 12 '18 at 06:52 AM

avatar image

4.3k 82 20 104

avatar image KevinPlease Dec 15 '18 at 09:26 PM

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! :D

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question