Hi. Amazing video! Thank you. Quick questions, 1. When I added spline point manually using C++ as follows const FVector position1(0, 0, 0); SplineComponent->AddSplinePoint(position1, ESplineCoordinateSpace::Local, true); It kept creating infinite number of points on top of each other. I called it in an overriden OnCOonstruction() function. How can I create only one spline point? 2. And also how can we create a splie points in a closed loop as in your video with code? Thanks in advance
Thank you! 1. I am afraid I've never tried to create point on the spline on code, so I don't know why you are having that issue. I would suggest you try to AddSplinePoint on BeginPlay instead and add a breakpoint on Visual Studio to see if that is being called more than once. 2. I'd imagine you use the same function to add points: SplineComponent->AddSplinePoint.
@@BeeBlueBubble Hi. I figured it out :) I added spline points using AddSplinePoint() giving location to spawn in a seperate function and called it from overriden OnConstruction Function and gave a condition to execute only if number of spline points are
Thx for the help missy! ^^
Hi. Amazing video! Thank you.
Quick questions,
1. When I added spline point manually using C++ as follows
const FVector position1(0, 0, 0);
SplineComponent->AddSplinePoint(position1, ESplineCoordinateSpace::Local, true);
It kept creating infinite number of points on top of each other. I called it in an overriden OnCOonstruction() function. How can I create only one spline point?
2. And also how can we create a splie points in a closed loop as in your video with code?
Thanks in advance
Thank you!
1. I am afraid I've never tried to create point on the spline on code, so I don't know why you are having that issue. I would suggest you try to AddSplinePoint on BeginPlay instead and add a breakpoint on Visual Studio to see if that is being called more than once.
2. I'd imagine you use the same function to add points: SplineComponent->AddSplinePoint.
@@BeeBlueBubble Thank you very much. The spline points do not get created when I code in beginplay(). I'll share when I find a solution. Thanks again.
@@madara6060 Thanks, I can´t be of more help I´ve never tried this option before
@@BeeBlueBubble Hi. I figured it out :) I added spline points using AddSplinePoint() giving location to spawn in a seperate function and called it from overriden OnConstruction Function and gave a condition to execute only if number of spline points are
@@madara6060 Fantastic, thanks for sharing!
thx
Thank you!
thx