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: networkvariablebase not being reinitialized if networkobject persists between sessions #3181

Draft
wants to merge 4 commits into
base: develop-2.0.0
Choose a base branch
from

Conversation

NoelStephensUnity
Copy link
Collaborator

This PR resolves the issue where a NetworkObject instance with a NetworkBehaviour that includes one or more NetworkVariableBase derived class properties persists between network sessions is not having its NetworkVariableBase.Initialize method invoked again when spawned again. This resulted in clients not being updated to changes in the NetworkVariableBase derived class properties for a period of time equal to the duration of the last spawned time frame from its previous network session.

MTTB-881

Changelog

  • Fixed: Issue where NetworkVariableBase derived classes were not being re-initialized if the associated NetworkObject instance was not destroyed and respawned.

Testing and Documentation

  • Includes integration tests (WIP).
  • No documentation changes or additions were necessary.

This will "re-initialize" NetworkVariableBase derived classes when the instance is not destroyed and repurposed.
adding changelog entry
Adding PR number to changelog entry
@NoelStephensUnity NoelStephensUnity added the type:backport-release-1.0.0 This PR should be backported to 1.0.0 label Dec 18, 2024
? This test needs more comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:backport-release-1.0.0 This PR should be backported to 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant