In my project I do this to spawn my character and works.
UWorld* const World = GetWorld();
if (World)
{
FActorSpawnParameters SpawnParameters;
SpawnParameters.Owner = this;
SpawnParameters.Instigator = Instigator;
// Spawn the new character based on number of pixels
YourActorClass* NewActor = World->SpawnActor<YourActorClass>(Location, Rotation, SpawnParameters);
}