Skip to content

fix: NetworkManager always sent to the DDOL and cannot be nested - release 1.0.0 backport #1623

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

Conversation

NoelStephensUnity
Copy link
Collaborator

Networkmanage 's gameObject can't be a child of another gameObject. otherwise will show this issue:
Exception: Failed to find any loaded scene named "XXXX"
and everything related to the network will not working.

This addresses Github-Issue #1417 (described above) where users will now be provided notifications that the NetworkManager cannot be parented under another GameObject (nested). This PR also removes the DontDestroy property from the NetworkManager so that no NetworkManager instance can be destroyed by unloading a scene.

Development Standalone Build: The in-engine debug console displays the message that they cannot nest a NetworkManager
Editor Edit-Mode: A dialog box notifies the user that they cannot nest a NetworkManager and provides the option for the user to auto-fix or manually fix it
Editor Play-Mode: A dialog box just notifies the user that they cannot nest a NetworkManager

MTT-1732

This is a backport of PR-1484

PR Checklist

  • Have you updated the changelog? Each package has a CHANGELOG.md file.

Changelog

com.unity.netcode.gameobjects

Testing and Documentation

Includes editor and runtime tests to validate the fix
No documentation changes or additions were necessary.

Updates from PR-1484 that fix/resolve the issue with nested NetworkManagers as well as removes the Dont Destroy property and now always migrates the NetworkManager into the DDOL.
Test additions and updates from PR-1484 that are applicable to the 1.0.0 branch
Adding PR-1484's changelog updates.
Copy link
Contributor

@mattwalsh-unity mattwalsh-unity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am assuming as I approve per my chat w/ @NoelStephensUnity that the only things new here vs #1484 were changes in NetworkTransformTests.cs and SceneReferenceValidationState.cs, neither of which affect any of the implementation

@ashwinimurt
Copy link
Contributor

cc @ashwinimurt to get pinged when this is merged.

@ashwinimurt
Copy link
Contributor

Merging after speaking with Noel.

@ashwinimurt ashwinimurt enabled auto-merge (squash) January 27, 2022 00:06
@ashwinimurt ashwinimurt disabled auto-merge January 27, 2022 00:07
@ashwinimurt ashwinimurt enabled auto-merge (squash) January 27, 2022 00:07
@ashwinimurt ashwinimurt merged commit ab377b9 into release/1.0.0 Jan 27, 2022
@ashwinimurt ashwinimurt deleted the fix/nested-networkmanager-ddol-editor-check-release-1.0.0 branch January 27, 2022 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants