-
Notifications
You must be signed in to change notification settings - Fork 447
SceneName in SceneEvent contains inconsistent values #3418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The By calling Do you have further details on the issue you're encountering here? |
Wouldn't it make more sense to make sure that Alternatively I suppose to avoid breaking changes, perhaps documentation needs more clarification on this, since I was confused for a couple of hours when testing this as my loading state would hang as it was not cleaning up due to intermixed paths/names. |
That is a good point. The issue is marked for import. For your use case (and to avoid potentially breaking other projects), would a reasonable compromise be to provide an additional "ScenePath" string within the SceneEvent so you have (consistently) the SceneName and ScenePath populated? |
Having a |
Uh oh!
There was an error while loading. Please reload this page.
Description
When using automatic scene management,
SceneName
is inconsistently reported inNetworkSceneManager.OnSceneEvent
.Reproduce Steps
NetworkSceneManager.OnSceneEvent
innetworkManager.OnClientStarted
NetworkSceneManager
by passing in a full scene path (e.g.,Assets/Scenes/GameScene_02.unity
)SceneEvent.SceneName
andSceneEvent.Scene
arguments inOnSceneEvent
callbackActual Outcome
SceneEvent.SceneName
in some event types contains the full scene path, in some only the scene name.Expected Outcome
SceneEvent.SceneName
should always be consistent - contain the full scene path or the scene name all the time.Environment
6000.0.47f1
com.unity.netcode.gameobjects
version:2.3.2
com.unity.services.multiplayer
version:1.1.2
Additional Context
I'm using distributed authority:
Loading the scene as follows:
Tracking the
OnSceneEvent
the following way:Log lines that get printed:
The text was updated successfully, but these errors were encountered: