Line Trace to a dynamic BP_Actor not working

Hello, I’m a beginner learning how to do stuff in UE5 and I’m trying to generate a line trace from an object, in this case it’s a bubble, that I want to eventually edit some of it’s components depending on the object the trace hits, however I can’t seem to get it to work, I’ve tried using Get World Location / Rotation using the Mesh in the BP actor and even using Get Actor Location / Rotation and neither generates the line in the level.

I’ll add a couple of screenshots to show what I’ve tried and how it looks inside the level viewport:


I truly don’t quite grasp what’s wrong and would appreciate any help I can get understanding what’s wrong

Hey @Camileytor!

Assuming your float type variable named “Trace Distance” is not too small, preferably over 200, I might have a guess on why nothing’s being drawn. This sentence made me think:

Are you by any chance, checking it out on the level viewport, without pressing that green play icon at the top to run the game? Event Tick executes at runtime.

If that’s not the case tho, here are some steps you can take for further debugging:

  • Use Print String nodes to read the actor’s location. Maybe the Event Graph you were working on isn’t the actor you’re expecting, or the mesh has an offset.
  • If the Print String node doesn’t even get triggered, then the actor that Event Graph belongs to didn’t even spawn yet, or has tick disabled.

Hope these help :innocent:

1 Like

OMG The tick for the object was disabled! Thank you so much! as soon as I turned Start with Tick Enabled to true it started working!

1 Like