-
Notifications
You must be signed in to change notification settings - Fork 449
fix: [Backport] MTTB-1273 Inconsistent scene name in scene event #3487
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
base: develop
Are you sure you want to change the base?
fix: [Backport] MTTB-1273 Inconsistent scene name in scene event #3487
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some areas I noticed differences...
}); | ||
|
||
OnUnload?.Invoke(NetworkManager.LocalClientId, sceneName, sceneUnload); | ||
InvokeSceneEvents(NetworkManager.LocalClientId, sceneEventData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to go above the InvokeSceneEvents?
// The only scenes unloaded are scenes that were additively loaded
sceneEventData.LoadSceneMode = LoadSceneMode.Additive;
}); | ||
|
||
OnLoad?.Invoke(NetworkManager.LocalClientId, sceneName, loadSceneMode, sceneLoad); | ||
InvokeSceneEvents(NetworkManager.LocalClientId, sceneEventData, sceneLoad); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to add the scene path or is that being automatically done?
@@ -1736,7 +1760,9 @@ public NetcodeIntegrationTest(HostOrServer hostOrServer) | |||
protected void AssertOnTimeout(string timeOutErrorMessage, TimeoutHelper assignedTimeoutHelper = null) | |||
{ | |||
var timeoutHelper = assignedTimeoutHelper ?? s_GlobalTimeoutHelper; | |||
Assert.False(timeoutHelper.TimedOut, timeOutErrorMessage); | |||
var internalError = m_InternalErrorLog.Length > 0 ? $"{timeOutErrorMessage}\n{m_InternalErrorLog}" : timeOutErrorMessage; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this need to return early if length > 0?
MTTB-1278
fixes: #3418
Changelog
ScenePath
field on theSceneEvent
returned by theOnSceneEvent
callback.OnSceneEvent
callback.Testing and Documentation
Backport
This is a backport of #3458