Expose on spawn variable

Hello, is it possible to set a variable on spawn for an actor spawned with c++? (The same way we do with blueprint actors)

Something like this :

SpawnActor<class>(class, SpawnLoc, SpawnRot, SpawnParameters, [OnSpawnParameters.....]);

I know I could call a function after spawning the actor to set variables but I would like to know if there is a better way to do this.

Thanks !

Bump, I still need to know how to do this

the answer is no.

The answer is in fact yes. Using UWorld::SpawnActorDeferred | Unreal Engine Documentation & UGameplayStatics::FinishSpawningActor | Unreal Engine Documentation