Skip to content

fix: reset static fields for Fast Enter Play Mode#3956

Merged
noellie-velez merged 40 commits into
develop-2.0.0from
chore/fast-enter-playmode
Jun 1, 2026
Merged

fix: reset static fields for Fast Enter Play Mode#3956
noellie-velez merged 40 commits into
develop-2.0.0from
chore/fast-enter-playmode

Conversation

@noellie-velez
Copy link
Copy Markdown
Collaborator

@noellie-velez noellie-velez commented Apr 24, 2026

Purpose of this PR

Ensure com.unity.netcode.gameobjects package supports Fast Enter Play Mode

Jira ticket

MTT-14665

Changelog

  • Fixed: Netcode for Game Objects now supports Fast Enter Play Mode

Documentation

  • No documentation changes or additions were necessary.

Testing & QA (How your changes can be verified during release Playtest)

Functional Testing

Manual testing :

  • Manual testing done

Automated tests:

  • Covered by existing automated tests
  • Covered by new automated tests

Does the change require QA team to:

  • Review automated tests?
  • Execute manual tests?
  • Provide feedback about the PR?

If any boxes above are checked the QA team will be automatically added as a PR reviewer.

Backports

N/A

Comment thread com.unity.netcode.gameobjects/Runtime/SceneManagement/SceneEventData.cs Outdated
Comment thread com.unity.netcode.gameobjects/Runtime/Components/NetworkTransform.cs Outdated
@noellie-velez noellie-velez marked this pull request as ready for review April 24, 2026 15:06
@noellie-velez noellie-velez requested review from a team as code owners April 24, 2026 15:06
Copy link
Copy Markdown
Contributor

@simon-lemay-unity simon-lemay-unity left a comment

Choose a reason for hiding this comment

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

Changes to UnityTransport look good to me.

Comment thread com.unity.netcode.gameobjects/Runtime/Components/NetworkTransform.cs Outdated
Comment thread com.unity.netcode.gameobjects/Runtime/Components/QuaternionCompressor.cs Outdated
Comment thread com.unity.netcode.gameobjects/Runtime/Core/ComponentFactory.cs Outdated
Comment thread com.unity.netcode.gameobjects/Runtime/Core/NetworkManager.cs Outdated
Comment thread com.unity.netcode.gameobjects/Runtime/Core/NetworkManager.cs
Comment thread com.unity.netcode.gameobjects/Runtime/Messaging/DeferredMessageManager.cs Outdated
Comment thread com.unity.netcode.gameobjects/Runtime/Messaging/INetworkMessage.cs Outdated
Comment thread com.unity.netcode.gameobjects/Runtime/Metrics/NetworkMetrics.cs Outdated
Comment thread com.unity.netcode.gameobjects/Runtime/Metrics/NetworkMetrics.cs Outdated
Copy link
Copy Markdown
Member

@EmandM EmandM left a comment

Choose a reason for hiding this comment

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

This is looking incredible! You've done such good thorough work on this PR. You should be really proud of yourself. :godmode:

Comment thread com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs Outdated
Comment thread com.unity.netcode.gameobjects/Runtime/Metrics/NetworkMetrics.cs Outdated
Comment thread com.unity.netcode.gameobjects/Tests/Editor/FastEnterPlayModeTests.cs Outdated
Comment on lines +12 to +16
#if UNITY_6000_6_OR_NEWER
[Scripting.LifecycleManagement.AutoStaticsCleanup]
#endif
[Serializable]
public static class NetworkVariableSerialization<T>
public static partial class NetworkVariableSerialization<T>
Copy link
Copy Markdown
Collaborator Author

@noellie-velez noellie-velez May 29, 2026

Choose a reason for hiding this comment

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

This is breaking the tests on trunk. It seems AutoStaticsCleanup may be cleaning up after ILPP initialization.
@ShadauxCat, can you confirm whether we actually need to reset those statics?

@noellie-velez noellie-velez enabled auto-merge (squash) June 1, 2026 10:16
Copy link
Copy Markdown
Member

@EmandM EmandM left a comment

Choose a reason for hiding this comment

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

Let's go!

@noellie-velez noellie-velez merged commit c48f54d into develop-2.0.0 Jun 1, 2026
23 checks passed
@noellie-velez noellie-velez deleted the chore/fast-enter-playmode branch June 1, 2026 21:09
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.

5 participants