I have a prefab of a room that gets instantiated at runtime, this prefab has lots of nested other prefabs, some of them static (which the client also instantiates) and some of them are ghosts.
When I run game both the server and client instantiate the prefab correctly, but then the ghost gets taken out of the hierarchy (since it needs to be a root entity) and that makes it snap to the wrong world position.
How do you handle this specific scenario?
Most of those ghosts are Physics Entities as well, and can be deeply nested - the prefab is large room/ building with multiple levels, and consists of loads of nested prefabs in different depths.
I don`t want the main room/static components to be Ghosts, there is no point in syncing them since they are static and are predicable to generate on both server/client.
But anything dynamic should still be position in relation to the parent entity when spawn.