Hi!
I’ve found a possible bug. When i run my game as stated below:
-
In multiplayer
-
run in PIE
-
spawn weapon on server, replicate
-
yield weapon on all clients, AttachActorToComponent (wep_mesh to character_skeletal_mesh)
-
When shutting down editor crashes on:
USceneComponent::OnComponentDestroyed()
...
// Detach children before destroying
for (int32 Index = AttachChildren.Num()-1; Index >= 0; --Index)
{
**if (USceneComponent* Child = AttachChildren[Index])**
{
if (AttachParent)
{
Child->AttachTo(AttachParent);
}
else
{
Child->DetachFromParent();
}
}
}
..
Workaround
DetachActorFromActor in my PlayerController on all my BaseItem class objects in Event EndPlay