Pass parameter on spawn c++

I never tried but i dont think UE4 support spawning from constructor which would allow to do that. There this common method

Spawn actor with this function:

set varables that oyu need and then call one of those functions to finish spawning process:

i been searching how can i pass a parameter on spawn when using ()->SpawnActor<T>() like you do in blueprints

I’m already using the correct macro:

 UPROPERTY(EditAnywhere, BlueprintReadWrite, Meta = (DisplayName = "Weapon Data", ExposeOnSpawn = true))


I will try this later and check, seems like you can SpawnActorDeferred, set the params and the FinishSpawningActor to call the OnConstruct Method.