Hello, Here I have a question:
I personal create a array with spline component like:
UPROPERTY(BlueprintReadWrite, Category="Traffic Routes", EditAnywhere)
TArray<USplineComponent *> Routes;
and two spline meshes like :
UPROPERTY(EditAnywhere)
USplineComponent* RouteDirection0;
UPROPERTY(EditAnywhere)
USplineComponent* RouteDirection1;
in my head file.
And In my cpp files I add some points in the spline Components and then want them add in the 'Routes ’ array which I create in head file.
Is as simple as :
Routes.Add(RouteDirection0);
Routes.Add(RouteDirection1);
or there must be some other way???
Any Help will be appreciated!!!Thanks!!!