Unity-Technologies / com.unity.netcode.gameobjects

Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.
MIT License
2.1k stars 430 forks source link

Multiplayer Playmode: Virtual Player Window only shows Project Settings due to Cloud Services reminder #2829

Closed CodeSmile-0000011110110111 closed 3 months ago

CodeSmile-0000011110110111 commented 4 months ago

Description

In Multiplayer Playmode the editor window that opens for a Virtual Player once popped up the reminder to set up Unity's cloud services (although nothing needed to be set up). After it nagged me several times, I followed its link to open Project Settings.

Now whenever I launch this virtual player it always shows me just the Project Settings, never the Game View. And I have no way to restore the game view.

Deleting the Library folder does not fix this issue. Nor does deleting the Library, accepting the initial cloud setup popup, restarting the editor and ensuring the cloud services popup does not appear again, and only then activating a virtual player. Unfortunately the vp will still pop up this "setup" dialog.

Reproduce Steps

Probably by installing Unity Cloud services (see my packages, perhaps just one service package suffices) so that the "set up cloud" popup window appears in the main editor. By deleting the project's Library folder you can force this popup window to appear.

If you then launch with a Virtual Player it should also pop up this dialog in the virtual editor and once that happens, there's no way to get out of it.

Workaround

It would be nice if MPPM window had a function "Reset View" so you can always bring back the game view and console.

Screenshots

This is what launching a virtual player looks like, it just opens Project Settings, reflecting what I have open in the main editor:  

image

Environment

I use Unity 2023.3.0b7 on Windows 11 with the following packages:

"dependencies": { "com.unity.burst": "1.8.12", "com.unity.cinemachine": "2.9.7", "com.unity.collab-proxy": "2.2.0", "com.unity.collections": "2.4.0-pre.2", "com.unity.connect.share": "4.2.3", "com.unity.editorcoroutines": "1.0.0", "com.unity.ide.rider": "3.0.27", "com.unity.inputsystem": "1.8.0-pre.2", "com.unity.memoryprofiler": "1.1.0", "com.unity.multiplayer.playmode": "1.0.0-pre.2", "com.unity.multiplayer.tools": "2.1.0", "com.unity.netcode.gameobjects": "1.8.1", "com.unity.performance.profile-analyzer": "1.2.2", "com.unity.postprocessing": "3.4.0", "com.unity.probuilder": "6.0.1-pre.1", "com.unity.remote-config": "4.0.0", "com.unity.render-pipelines.universal": "17.0.2", "com.unity.services.analytics": "5.1.0", "com.unity.services.ccd.management": "3.0.0", "com.unity.services.cloud-build": "1.0.5", "com.unity.services.cloud-diagnostics": "1.0.6", "com.unity.services.cloudcode": "2.5.1", "com.unity.services.cloudsave": "3.1.0", "com.unity.services.deployment": "1.3.0", "com.unity.services.economy": "3.3.0", "com.unity.services.friends": "1.0.0", "com.unity.services.leaderboards": "2.0.0", "com.unity.services.lobby": "1.2.0", "com.unity.services.matchmaker": "1.1.2", "com.unity.services.moderation": "1.0.0-pre.2", "com.unity.services.multiplay": "1.1.1", "com.unity.services.relay": "1.0.5", "com.unity.services.vivox": "16.0.1", "com.unity.timeline": "1.8.6", "com.unity.toolchain.win-x86_64-linux-x86_64": "2.0.6", "com.unity.transport": "2.1.0", "com.unity.ugui": "2.0.0", "de.codesmile.assetdatabase": "file:P:/de.codesmile.assetdatabase", "de.codesmile.assetinspector": "file:P:/de.codesmile.assetinspector", "de.codesmile.extensions": "file:P:/de.codesmile.extensions", "de.codesmile.netcode": "file:P:/de.codesmile.netcode", "de.codesmile.testtools": "file:P:/de.codesmile.testtools", "com.unity.modules.physics": "1.0.0", "com.unity.modules.uielements": "1.0.0" }

CodeSmile-0000011110110111 commented 3 months ago

Note: I no longer have this issue with 1.0.0 (final) and Unity 6000.0.0b11