Pass parameters before OnConstruction

Hello guys, I am almost crying trying to find out how to pass parameters to a clas before OnConstruction in C++.

I have a Street class that should generate SplineMeshComponents depending on a splineComponent. But I somehow need to set the spline component before I use it in OnConstruction. I mean, it can’t be that hard? How else would you spawn a SplineMesh if you can’t give it the data it needs…

Please tell me I don’t REALLY have to to something so ****** stupid as this:

this->spline = Cast(this->GetWorld()->GetFirstPlayerController()->PlayerState)->getPathwayBuilder()->getCurrentPathway()->getSpline();

because thats the only way I got It working at the moment…