Here is the .h
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Edtion)
TArray<USplineComponent*> SplineComponents;
UFUNCTION(BlueprintCallable, meta = (DisplayName = "AddNewSpline"), Category = "Generator")
virtual void ABuildingGenerator::AddNewSpline();