Steps to reproduce:
- Download and extract the attached project
- Open it
- Observe the Console once Import is complete
Actual results:
Two errors are logged on every Editor start / domain reload, and the Multiplayer Play Mode workflow never initializes:
Lifecycle ERROR : Exception while executing scope transition handler Unity.Multiplayer.PlayMode.Editor.MultiplayerPlaymode.InitializeOnLoad(): System.TypeInitializationException: The type initializer for 'Unity.Multiplayer.PlayMode.Editor.VirtualProjectWorkflow' threw an exception. ---> UnityEngine.UnityException: Calls to "AssetDatabase.GetMainAssetOrInProgressProxyEntityId" are restricted during . Please make sure this function is not called from code that runs during code reload (e.g. [OnCodeLoaded])
(the same TypeInitializationException is thrown again from Unity.Multiplayer.PlayMode.Editor.MultiplayerWindowController.InitializeOnLoad())
Expected results: No errors on Editor start; the old-version data migration runs without violating the code-reload restriction and Multiplayer Play Mode initializes normally.
Reproducible with versions: 6000.7.0a5, 6000.7.0a6
Not reproducible with versions: 6000.0.84f1, 6000.3.24f1, 6000.5.11f1, 6000.6.1f1, 6000.7.0a4
Tested on (OS): Windows 11