Skip to content
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

fix: NetworkObject.DeferDespawn not respecting DestroyGameObject parameter #3219

Merged

Conversation

EmandM
Copy link
Collaborator

@EmandM EmandM commented Jan 31, 2025

Ensure that DeferDespawn respects the DestroyGameObject parameter for in-scene placed network objects.

Add unit and integration tests around deferred despawning.

MTTB-972

Changelog

  • Fixed: Pass the DestroyGameObject parameter correctly through the DeferDespawn codepath

Testing and Documentation

  • Includes unit tests.
  • Includes integration tests.

@EmandM EmandM requested a review from a team as a code owner January 31, 2025 20:06
NoelStephensUnity and others added 7 commits February 3, 2025 10:28
Checking to see if the failure was due to the network prefab being spawned when the host-server starts.
Assure all NetworkManagers are destroyed at the end of TearDown.
This reverts commit 16659e8.
Fixing the bug in my previous fix.
Adding PR number to changelog entry.
Copy link
Collaborator

@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.

Added PR number to change log entry.
Other than that, looks good to me!
👍

@NoelStephensUnity NoelStephensUnity merged commit 2eee998 into develop-2.0.0 Feb 5, 2025
24 checks passed
@NoelStephensUnity NoelStephensUnity deleted the fix/MTTB-972-DeferDespawn-DestroyGameObject branch February 5, 2025 12:36
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