Quick Question.

I am currently making a spline for a river but I need to get a reference to every spline mesh component I’ve been trying for a couple hours now and finally decided to give in to the forums.

As demonstrated in the last screenshot:


  • use it as is if all you need is overlap detection
  • or add the SMCs to an array in case you need to manipulate them later on
  • or query the actor with Get Components by Class (Spline Mesh Component)

Hi again :slight_smile: I need to check If my Character Is overlapping each tick and annoyingly “Component begin overlap” Only happens once every time the player enters the volume, I have been using code like this for my swimming component (I know I shouldn’t really cast on event tick this is just a example)

I just need a reference to all the SMCs But since I’m pretty new to splines and unreal In general I don’t have much of a clue haha. thank you so much for all the help, you are a legend!

Why? The event driven approach is the way forward. What you’re doing there is computationally expensive and not the way to go about it (also a potential debugging nightmare). Are you going to check if the player is overlapping every single spline mesh component 60 times per second? In case you do want to carry on (hey, it’s your project), the other 2 bullet points are a valid way for obtaining references.


Do reconsider an Event Driven approach, though: player enters / leaves water → send an interface message to the Pawn and have it propagate to the movement component.

Good luck!

I had a problem using the event where if my character was Swimming on the surface of the water it would glitch and fall through the volume, my Swimming component is a actor that checks every tick if it is overlapping a SCM so it is only the Swimming component that is checking if its overlapping a SCM, Though I will reconsider using the event now.