Skip to content

fix: fixing an exception and error logging when two different objects are shown and hidden on the same frame [MTT-6303]#2535

Merged
jeffreyrainy merged 4 commits intodevelopfrom
fix/g-2524-concurrent-show-and-hide
May 2, 2023
Merged

fix: fixing an exception and error logging when two different objects are shown and hidden on the same frame [MTT-6303]#2535
jeffreyrainy merged 4 commits intodevelopfrom
fix/g-2524-concurrent-show-and-hide

Conversation

@jeffreyrainy
Copy link
Copy Markdown
Contributor

@jeffreyrainy jeffreyrainy commented Apr 27, 2023

Adds a check on networkObject.Observers.Remove(clientId); that the observer can actually be removed as, otherwise, a thrown exception would break the show/hide functionality.

MTT-6303
Pertains to issue #2524.

@jeffreyrainy jeffreyrainy requested a review from a team as a code owner April 27, 2023 21:05
@NoelStephensUnity NoelStephensUnity changed the title fix: fixing an exception and error logging when two different objects are shown and hidden on the same frame (#2524) fix: fixing an exception and error logging when two different objects are shown and hidden on the same frame [MTT-6303](#2524) Apr 28, 2023
@NoelStephensUnity NoelStephensUnity changed the title fix: fixing an exception and error logging when two different objects are shown and hidden on the same frame [MTT-6303](#2524) fix: fixing an exception and error logging when two different objects are shown and hidden on the same frame [MTT-6303] Apr 28, 2023
Copy link
Copy Markdown
Member

@NoelStephensUnity NoelStephensUnity left a comment

Choose a reason for hiding this comment

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

Just need a changelog entry and I will appove!
👍

…y-Technologies/com.unity.netcode.gameobjects into fix/g-2524-concurrent-show-and-hide
Copy link
Copy Markdown
Member

@NoelStephensUnity NoelStephensUnity left a comment

Choose a reason for hiding this comment

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

LGMT!

@jeffreyrainy jeffreyrainy merged commit c0d9087 into develop May 2, 2023
@jeffreyrainy jeffreyrainy deleted the fix/g-2524-concurrent-show-and-hide branch May 2, 2023 15:27
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.

2 participants