MirrorConverter icon indicating copy to clipboard operation
MirrorConverter copied to clipboard

Multi-scene support

Open Lymdun opened this issue 6 years ago • 2 comments

Would be nice if the tool could migrate all UNET components in each scene

Lymdun avatar Feb 23 '19 18:02 Lymdun

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.

MrGadget1024 avatar Feb 26 '19 05:02 MrGadget1024

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.

MrGadget1024 avatar Apr 02 '19 16:04 MrGadget1024