MirrorConverter
MirrorConverter copied to clipboard
Multi-scene support
Would be nice if the tool could migrate all UNET components in each scene
This may be more than a "nice to have". If you convert the scripts and prefabs, then open a scene with Unity's Network Manager, the prefabs assigned in the inspector are no longer valid, and Unity clears them out with an error:
NetworkManager - playerPrefab must have a NetworkIdentity.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
It has a Mirror Network Identity now, which the Unet Network Manager doesn't like.
Adding to this, when scene converter runs on an object with 1 UNet NetworkManager and 1 Unet NetworkManagerHUD, you end up with two Mirror NetworkManager's and 1 Mirror NetworkManagerHUD.
My guess is the sequence of replacement is triggering the RequireComponent action to auto-add the extra component.
If scene files were processed without having them open in the editor, this wouldn't happen.