Add spline point in Runtime from Blueprint

I want to add a spline point in between 2 spline points like this. I am confused like how to work with spline point or points

Whenever i click play point C should be added in between point A and Point B and also how can i get the length between Point C to A and Point C to B

So, I make a new empty actor blueprint and put a spline in it like this:

Then I put it in the level:

The only problem is, if I add a point during play, you can’t see it. So I made a custom event which you can call in the editor ( you don’t press play ), like this:

See it always adds a point halfway between the first two points. Now, when I select the blueprint in the level, I’ve got an extra button:

and when I click it, boom, extra point:

305573-point.jpg

So, to answer your second question, you can find the place between two points just by adding their locations and dividing by 2, just like you would do to find the number between two integers.

1 Like

I suggest you watch this tutorial about spline made by Epic

You are awesome.How can i follow you in youtube or twitter or any other except this please let me know. And please tell me how can i become like pro in unreal like you can answer most of the questions

Thank you.

Sorry, I don’t have any followable streams at the moment :slight_smile:

If you wanna get good at it just keep going, and going, and going… :slight_smile:

1 Like