I spawned an actor (explsion) at trace location (weapon shot).
FActorSpawnParameters spawn_params;
spawn_params.Owner = GetOwner();
spawn_params.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AlwaysSpawn;
GetWorld()->SpawnActor<AExplosion>(ExplosionType, ImpactPoint, { 0, 0, 0 }, spawn_params);
And got this warning:
[2016.02.10-06.46.32:553][373]LogActor:Warning: GameSession /Game/Maps/Special/UEDPIE_1_LoginMap.LoginMap:PersistentLevel.GameSession_0 has natively added scene component(s), but none of them were set as the actor’s RootComponent - picking one arbitrarily
How to fix it?
And also I look strange freezes after spawning explosions (a little time later)… Is it associated with this warning?