I am adding a Spline mesh Component at runtime in the Level Blueprint.
I am trying to delete it after 2 seconds but it doesn’t seem to work.
(i create the mesh inside my spline BP, then attach it to the root scene).
I am using the return value of "Add Mesh Component’’ as the reference target of the DestroyComponent.
Ok i figured it out.
I needed to make a custom event and a placeholder Variable(Spline Mesh Type) inside the target blueprint.
Then, in the level BP, set the mesh to the variable, then call the event.
I had a similar problem, for me I just use set static mesh node to set spline mesh to empty and it could be destroied.
This stuck me for about a week! Sharing with you guys.