- Home /
Replacing existing prefab with asset id...
I'm looking at guides from DipperDino on Mirror multiplayer and during development there was an error that it doesn't have. I rechecked everything many times and couldn't fix it. The error sounds like "replacing existing prefab with asset id", referring to objects in Rosouces.SpawnablePrefabs.
Answer by whoisgliese · Mar 08, 2021 at 10:03 PM
For me this was caused because i had already assigned the room player prefab to be the player prefab. there, it was registered by the network manager, and then it was registered again by the Resources.LoadAll method
So I just took the room player prefab out of the spawnableprefabs folder and that solved it
This solved my issue. NOTE: It must be removed from the SpawnablePrefabs folder as suggested, not the RoomPlayerPrefab field NetworkManager.