Calling construction script on spawned actor

Usage :

ASomeActor* Actor = GetWorld()->SpawnActorDeferred<ASomeActor>(ASomeActor::StaticClass(), SpawnTransform);
if (Actor)
{
	Actor->SomeParam = 42;
	Actor->FinishSpawning(SpawnTransform);
}
2 Likes