Skip to content

fix: NetworkObject.NetworkHide destroys client-side in-scene placed NetworkObjects [MTT-4211] #2086

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

@NoelStephensUnity NoelStephensUnity commented Jul 28, 2022

This resolves the issue where NetworkHide was still destroying in-scene placed NetworkObjects on the client side which would cause the client to throw a soft synchronization error when NetworkShow was called on the same NetworkObject (server-side) for the same client it was hidden from. Now, in-scene placed NetworkObjects are only despawned when NetworkHide is invoked.

MTT-4211
This resolves issue #1953

Changelog

  • Fixed: Issue where NetworkObject.NetworkHide was despawning and destroying, as opposed to only despawning, in-scene placed NetworkObjects.

Testing and Documentation

  • Includes integration test modifications.
  • Includes edits to existing public API documentation.

MTT-4211
This fixes the issue where in-scene placed NetworkObjects were being destroyed when NetworkHide is invoked.
MTT-4211
This adds an additional check for NetworkHide and NetworkShow towards the end of the in-scene placed NetworkObject synchronization test.
whitespace fix
Adjusting comments and adding additional API XML Documentation for readability and clarification purposes.
MTT-4211
Updating the changelog.
@NoelStephensUnity NoelStephensUnity marked this pull request as ready for review July 28, 2022 17:33
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner July 28, 2022 17:33
improving the logic used for readability purposes since we know IsSceneObject will be valid.
migrating the majority of the comments into remarks.
Adding space within all added <br/> tags so they look like this: <br />
This is to see if the version of docusaurus we are using will not crash when it runs across this markdown syntax.
@lpmaurice lpmaurice merged commit 6d37247 into develop Jul 29, 2022
@lpmaurice lpmaurice deleted the fix/MTT-4211-networkhide-destroys-clientside-inscene-networkobjects branch July 29, 2022 19:43
jakobbbb pushed a commit to GooseGirlGames/com.unity.netcode.gameobjects that referenced this pull request Feb 22, 2023
…etworkObjects [MTT-4211] (Unity-Technologies#2086)

* fix

MTT-4211
This fixes the issue where in-scene placed NetworkObjects were being destroyed when NetworkHide is invoked.

* test

MTT-4211
This adds an additional check for NetworkHide and NetworkShow towards the end of the in-scene placed NetworkObject synchronization test.

* style

whitespace fix

* style

Adjusting comments and adding additional API XML Documentation for readability and clarification purposes.

* update

MTT-4211
Updating the changelog.

* update

improving the logic used for readability purposes since we know IsSceneObject will be valid.

* style

migrating the majority of the comments into remarks.

* style

Adding space within all added <br/> tags so they look like this: <br />
This is to see if the version of docusaurus we are using will not crash when it runs across this markdown syntax.
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