Skip to content

chore: Adding a note about DontDestroyOnLoad usage for Networked scene objects - #4070

Merged
michalChrobot merged 1 commit into
develop-2.0.0from
doc/info-on-dontdestroyonload-for-networked-scene-objects
Jul 23, 2026
Merged

chore: Adding a note about DontDestroyOnLoad usage for Networked scene objects#4070
michalChrobot merged 1 commit into
develop-2.0.0from
doc/info-on-dontdestroyonload-for-networked-scene-objects

Conversation

@michalChrobot

@michalChrobot michalChrobot commented Jul 9, 2026

Copy link
Copy Markdown
Member

Purpose of this PR

This PR originated from https://discussions.unity.com/t/netcode-for-gameobjects-v2-11-0-is-now-publicly-available/1713978/13 where it seems we are not providing anything on this.

Let me know if this is already included or should look differently

Jira ticket

N/A

Documentation

Added docs clarification but I don't think we need to mention this in the changelog

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

N/A

Backports

N/A

Up-port

To be done

@EmandM EmandM changed the title doc: Adding a note about DontDestroyOnLoad usage for Networked scene objects chore: Adding a note about DontDestroyOnLoad usage for Networked scene objects Jul 23, 2026
@michalChrobot
michalChrobot merged commit 80c55de into develop-2.0.0 Jul 23, 2026
13 of 19 checks passed
@michalChrobot
michalChrobot deleted the doc/info-on-dontdestroyonload-for-networked-scene-objects branch July 23, 2026 20:48
michalChrobot added a commit that referenced this pull request Aug 3, 2026
* chore: Adding a note about DontDestroyOnLoad usage for Networked scene objects (#4070)

Docs correction

* ci: Split code coverage into Package Test and Project Test jobs (#4101)

* ci: Split code coverage into Package Test and Project Test jobs

Convert the existing coverage job to [Code Coverage] Package Test - NGO [ubuntu, trunk] and add [Code Coverage] Project Test - NGO testproject [ubuntu, trunk]. Wire Package Test into PR/nightly triggers and Project Test into the weekly run.

* ci: Run both coverage jobs on PR and nightly

* ci: Use pinnedTrunk for PR coverage and drop package-test job

* chore: Point CMB resources at new monorepo (#4106)

* chore: Point CMB resources at new monorepo

* fix: NetworkVariable change prior to ownership change using distributed authority topology fails to sync NetworkVariable (#4107)

* fix

This resolves the issue where in a distributed authority session changing a NetworkVariable prior to changing ownership in the same call-stack would result in the NetworkVariable not being synchronized.

* fix - update

Removing the additional authority check as it is not needed.
Fixing a very edge case scenario that shouldn't happen but in the event it does when finding objects by type within a specific scene, if the scene is invalid then use an empty array for the found objects.

* fix: spawn disabled in scene placed and network prefab registration (#4093)

* fix

- Issue where disabled in-scene placed NetworkObjects could not be spawned after starting a session.
- Issue where users are allowed to spawn a NetworkObject with a GlobalObjectIdHash value of 0 (zero).

* update

NetworkAnimator not pointing to an animator within awake now just logs a warning as opposed to an error.

* test

Updating tests based on the fixes applied to this branch.
A large portion is related to some integration tests trying to spawn NetworkObjects with a GlobalObjectIdHash value of zero(0).

* update

Style and providing internal write access to the prefabs list.

* test

Potentially last iteration on fixing/updating integration tests.

* test - fix

Using the fixed version of NetworkPrefabHandlerSpawnAndSynchronizeTests.
Fixing some issues with prefab and handler creation.

* style

Fixing formatting issues.

* style

Fixing some standards formatting related issues.

* style

removing trailing spaces.

* style

Super weird one... but using ? as opposed to an if null check.

* style

Removing commented out code that is no longer needed/used.

* update

Committing suggested changes.

Co-authored-by: Emma <emma.mcmillan@unity3d.com>

* update

Applying changes based on review discussion.

* update

Making adjustments based on review discussion.

* style

Removing field that is no longer valid.
Moving Awake higher in NetworkObject as it has become wedged in the middle of the code.

* update

Adding change log entries.

* update

Inverting logic (oops)

* doc

Updating NetworkObject documentation and in-scene placed documentation.

* Update documentation for the two types of NetworkObjects

Clarified the categories of NetworkObjects and their requirements. Added details for dynamically instantiated and in-scene placed NetworkObjects.

* style

White spaces!

* Apply suggestions from code review

Co-authored-by: Amy Reeve <amy.reeve@unity3d.com>

---------

Co-authored-by: Emma <emma.mcmillan@unity3d.com>
Co-authored-by: Amy Reeve <amy.reeve@unity3d.com>

* docs: Docs-wide link fixes and xref update (#4102)

* Docs-wide link fixes and xref update

* Typo in API docs

* chore: Add NGO_EXCLUDE_HEAVY_TESTS define (#4114)

Add NGO_EXCLUDE_HEAVY_TESTS

---------

Co-authored-by: Nikos <nikos@unity3d.com>
Co-authored-by: Emma <emma.mcmillan@unity3d.com>
Co-authored-by: Noel Stephens <noel.stephens@unity3d.com>
Co-authored-by: Amy Reeve <amy.reeve@unity3d.com>
Co-authored-by: mnachury-unity <120488254+mnachury-unity@users.noreply.github.com>
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.

3 participants