So I’m new to setting up blueprints and I’ve been using a few tutorials to put it together. Essentially, I have a series of meshes representing different layers of the map in BP_Interactivemap which appears in the default pawn class when it runs (BP_camerapwn). I want the tracer to detect when the mouse goes over on of the instance maps (The blue one represents the continent edges and a regular landscape is currently below it).
Is the Blueprint I have set up the issue? The print string isn’t returning any hit results when I check. For reference, I’m trying to make something like this: Map of Runeterra - Universe - League of Legends
P.S. sorry for my terrible node management, I’m still learning.
So the problem here seems to be likely that the “Map” you want to block the hit isn’t set to block visibility in its collision settings. It’s likely set to ignore. If this is a BP with multiple components, you’ll want to make sure only the one you want to cause a hit has its collision set to block visibility! Select the map you want to have the collision and look at the details panel for it. Find Collision, set it to custom, and tell it to block visibility
Alternatively you can make a different channel to do a trace on, but something this simple likely doesn’t need that.
At least I hope that’s the issue! Get back to us and let us know if it isn’t so we can try something else!
To support the comment that has been mentioned above, you could always connect a ‘‘Print string’’ note into the ‘‘Return Value’’ of the line trace to see what the output is of the line trace if the value is ‘‘False’’ then it is probably the collision preset as mentioned above