Skip to content

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

Open
noellie-velez wants to merge 5 commits intodevelop-2.0.0from
chore/fast-enter-playmode
Open

fix: reset static fields for Fast Enter Play Mode#3956
noellie-velez wants to merge 5 commits intodevelop-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

}

internal static bool LogSerializationOrder = false;
internal static bool LogSerializationOrder;
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is only used to perform some logging but it is never set to true and it is internal, should we keep it? Is this something that should go in the new logging system instead?

Comment on lines 3839 to 3849
/// <inheritdoc/>
public override void OnLostOwnership()
{
base.OnLostOwnership();
}

/// <inheritdoc/>
public override void OnGainedOwnership()
{
base.OnGainedOwnership();
}
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Why do we have these empty overrides? Do we need them?

}

internal bool IsNested;
private List<NetworkObject> m_ParentedChildren = new List<NetworkObject>();
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

When is m_ParentedChildren updated? I had a warning about this in my IDE and didn't find the info myself 🫠

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

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