Spline or/and Spline Mesh Component onClick event doesnt trigger

Hello!
I have a blueprint with a spline in it. In the constructor script I set up the spline points, and add a spline mesh component to the spline, and I want to catch On Clicked and On Being Cursor Over event, but when I set it up, it isnt working.
I have read the most post about spline mesh component overlapping problem, but non of them solved my problem, the 2 events still dont triggering.

(I set up Player Controller’s options, set the collision of the static mesh/spline mesh, made a custom event to trigger, set up the collision channels, etc )

May you faced this issue earlier, if yes, how could you solve it?
Thanks!

How are doing it? How is the spline mesh collision configured?

1 Like

It is look like now (a bit messy because the lot of tries)

the mesh:

the constructor of a bp where the spline is:

and the added spline mesh component:

and a little update:

Now the On Begin Cursor Over (SplineMeshComponent) is working (the joke is that, it didnt work, yesterday, when I created this post, and it is working now, when I did no changes).
But the On Begin Cursor Over (Spline) still doesnt trigger. Is that because I added a spline mesh to it? (I tought it works like the added spline mesh trigger the spline’s mouse events too)

1 Like

We can’t use this one:

Or the nodes in your Event Graph. Instead:

The spline mesh components are spawned dynamically, so we also must bind them in the same manner.

But the On Begin Cursor Over (Spline) still doesnt trigger. Is that because I added a spline mesh to it? (I tought it works like the added spline mesh trigger the spline’s mouse events too)

The spline itself cannot be collided with in any way so this will never work. You will need to rely on the spline mesh components. When you say it IS working, are you sure it’'s working for all spline mesh components?

1 Like

I made it as you advised, and it is working now as expected:

And when I wrote “it is working” I meant, the way I set the click event (the bad one), is triggered, even, when I closed the project, it wasnt.

Thank you for your help!

1 Like