mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 09:35:25 +00:00
Fix non-editor builds
This commit is contained in:
parent
d861e3b413
commit
8b87c62c03
@ -104,7 +104,9 @@ AActor* UStevesPooledActorSystem::SpawnNewActor(UClass* Class, const FVector& Lo
|
||||
Params.NameMode = FActorSpawnParameters::ESpawnActorNameMode::Requested;
|
||||
Params.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AdjustIfPossibleButAlwaysSpawn;
|
||||
AActor* Ret = GetWorld()->SpawnActor(Class, &Location, &Rotation, Params);
|
||||
#if WITH_EDITOR
|
||||
Ret->SetActorLabel(Ret->GetName());
|
||||
#endif
|
||||
return Ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user