But I also have an actorcomponent inside the construction script which has some calculation depending upload the variable DistanceFromStar.
After I spawn the actor, then the construction script would have been executed and I don’t think there would be a way to change the value given to that actorcomponent. So is there a way change ta value of class variable before the construction script has been executed? Like making another default value?
Ah ok, I see that’s quite a predicament. I’m assuming you’ll be extending classes from this ASplineGeneratingActor for generating specific splines, otherwise there wouldn’t be a problem.
I don’t have the code in front of me at the moment, but I’d suggest looking into whether it’s possible to create default subobjects outside of the constructor, or passing parameters to the constructor via PCIP.
I think this method wont work here. Cause I wont be able to find assets outside constructor. I am thinking of using a static variable now whose value I can change during run time and the static variable is going to have some use in constructor. Let me see if that works.