I’m trying to add a SplineComponent to my class to make it follow the path of the spline.
So in my class which is derived from UActorComponent i have this property:
UPROPERTY(EditAnywhere, Instanced, Category = "Path spline")
USplineComponent* PathSpline;
And it is initialized in my constructor like this:
UMyComponentClass::UMyComponentClass(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
PathSpline = CreateDefaultSubobject<USplineComponent>(TEXT("Path"));
}
The spline component appears on my actor class in the editor. But why can’t I add any additional spline nodes?
I’m just seeing the first two default ones. I can move around the spline and change location, scale and transformation. But I can’t add any spline nodes what so ever…