From 38e80f06537c7d81761d97554de68a8c3403a12e Mon Sep 17 00:00:00 2001 From: NoelStephensUnity Date: Fri, 6 Jun 2025 18:19:32 -0500 Subject: [PATCH 01/16] update Updating the version and change log --- com.unity.netcode.gameobjects/CHANGELOG.md | 9 +++------ com.unity.netcode.gameobjects/package.json | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/com.unity.netcode.gameobjects/CHANGELOG.md b/com.unity.netcode.gameobjects/CHANGELOG.md index 4f56610a46..e7a9c24b2f 100644 --- a/com.unity.netcode.gameobjects/CHANGELOG.md +++ b/com.unity.netcode.gameobjects/CHANGELOG.md @@ -6,13 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) Additional documentation and release notes are available at [Multiplayer Documentation](https://docs-multiplayer.unity3d.com). -## [Unreleased] +## [2.4.1] - 2025-06-02 -### Added - -### Fixed - -### Changed +- Changed: Various internal orginizational changes along with a large XML API update for the test helpers API primarialy. +- Changed: Removed the multiplayer tools test project and migrated all of that to the tools repository. ## [2.4.0] - 2025-06-02 diff --git a/com.unity.netcode.gameobjects/package.json b/com.unity.netcode.gameobjects/package.json index f2ffe8f03c..c43dc42ec2 100644 --- a/com.unity.netcode.gameobjects/package.json +++ b/com.unity.netcode.gameobjects/package.json @@ -2,7 +2,7 @@ "name": "com.unity.netcode.gameobjects", "displayName": "Netcode for GameObjects", "description": "Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.", - "version": "2.4.0", + "version": "2.4.1", "unity": "6000.0", "dependencies": { "com.unity.nuget.mono-cecil": "1.11.4", From 557d61e44b05dbb198eb3220778d4191f05b91bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Chrobot?= <124174716+michalChrobot@users.noreply.github.com> Date: Mon, 9 Jun 2025 18:01:08 +0200 Subject: [PATCH 02/16] chore: Added API exception to 2.4.1 release (PVP related) (#3489) This PR adds an exception towards an exception "_Assembly "Unity.Netcode.Editor.PackageChecker" no longer exists or is no longer included in build. This change requires a new major version_" Feel to merge and release if we are ok with this modification (that it won't affect users projects). This was the only error marked by API validation ## Backport Not needed since it's a specific release related. **Note that this change also doesn't need to be ported to develop-2.0.0 since it affects only this release** --- ValidationExceptions.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ValidationExceptions.json diff --git a/ValidationExceptions.json b/ValidationExceptions.json new file mode 100644 index 0000000000..bfde3e773c --- /dev/null +++ b/ValidationExceptions.json @@ -0,0 +1,10 @@ +{ + "ErrorExceptions": [ + { + "ValidationTest": "API Validation", + "ExceptionMessage": "Assembly \"Unity.Netcode.Editor.PackageChecker\" no longer exists or is no longer included in build. This change requires a new major version.", + "PackageVersion": "2.4.1" + } + ], + "WarningExceptions": [] +} \ No newline at end of file From 0d8c4453a84a476a39669fb8c3425babd8b633fb Mon Sep 17 00:00:00 2001 From: Noel Stephens Date: Mon, 9 Jun 2025 12:35:55 -0500 Subject: [PATCH 03/16] Update ValidationExceptions.json Adding the 2nd exception needed --- ValidationExceptions.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ValidationExceptions.json b/ValidationExceptions.json index bfde3e773c..7b8003ea9b 100644 --- a/ValidationExceptions.json +++ b/ValidationExceptions.json @@ -4,7 +4,12 @@ "ValidationTest": "API Validation", "ExceptionMessage": "Assembly \"Unity.Netcode.Editor.PackageChecker\" no longer exists or is no longer included in build. This change requires a new major version.", "PackageVersion": "2.4.1" - } + }, + { + "ValidationTest": "API Validation", + "ExceptionMessage": "New assembly \"Unity.Netcode.PackageChecker.Editor\" may only be added in a new minor or major version.", + "PackageVersion": "2.4.1" + } ], "WarningExceptions": [] -} \ No newline at end of file +} From 8e58e775f4852b17fbec322a88385d5327b50703 Mon Sep 17 00:00:00 2001 From: Noel Stephens Date: Mon, 9 Jun 2025 12:36:46 -0500 Subject: [PATCH 04/16] style indenting new entry --- ValidationExceptions.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ValidationExceptions.json b/ValidationExceptions.json index 7b8003ea9b..3379fe8d22 100644 --- a/ValidationExceptions.json +++ b/ValidationExceptions.json @@ -6,9 +6,9 @@ "PackageVersion": "2.4.1" }, { - "ValidationTest": "API Validation", - "ExceptionMessage": "New assembly \"Unity.Netcode.PackageChecker.Editor\" may only be added in a new minor or major version.", - "PackageVersion": "2.4.1" + "ValidationTest": "API Validation", + "ExceptionMessage": "New assembly \"Unity.Netcode.PackageChecker.Editor\" may only be added in a new minor or major version.", + "PackageVersion": "2.4.1" } ], "WarningExceptions": [] From 3d2d7916c6d0106cca292a914aeb7d33d79cd10f Mon Sep 17 00:00:00 2001 From: NoelStephensUnity Date: Mon, 9 Jun 2025 14:13:17 -0500 Subject: [PATCH 05/16] update Adding the validations exceptions to the actual package to see if this fixes the issue. --- .../ValidationExceptions.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename ValidationExceptions.json => com.unity.netcode.gameobjects/ValidationExceptions.json (100%) diff --git a/ValidationExceptions.json b/com.unity.netcode.gameobjects/ValidationExceptions.json similarity index 100% rename from ValidationExceptions.json rename to com.unity.netcode.gameobjects/ValidationExceptions.json From cb55dee18ccfba2eff80bf8898d472c7df0c6844 Mon Sep 17 00:00:00 2001 From: NoelStephensUnity Date: Mon, 9 Jun 2025 14:54:01 -0500 Subject: [PATCH 06/16] Revert "update" This reverts commit 3d2d7916c6d0106cca292a914aeb7d33d79cd10f. --- .../ValidationExceptions.json => ValidationExceptions.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename com.unity.netcode.gameobjects/ValidationExceptions.json => ValidationExceptions.json (100%) diff --git a/com.unity.netcode.gameobjects/ValidationExceptions.json b/ValidationExceptions.json similarity index 100% rename from com.unity.netcode.gameobjects/ValidationExceptions.json rename to ValidationExceptions.json From aeb529f7efe553a640ce7602f62af4fdb57b9364 Mon Sep 17 00:00:00 2001 From: NoelStephensUnity Date: Tue, 10 Jun 2025 09:00:44 -0500 Subject: [PATCH 07/16] upate Migrating ValidationExceptions into package folder along with meta file. --- .../ValidationExceptions.json | 0 .../ValidationExceptions.json.meta | 7 +++++++ 2 files changed, 7 insertions(+) rename ValidationExceptions.json => com.unity.netcode.gameobjects/ValidationExceptions.json (100%) create mode 100644 com.unity.netcode.gameobjects/ValidationExceptions.json.meta diff --git a/ValidationExceptions.json b/com.unity.netcode.gameobjects/ValidationExceptions.json similarity index 100% rename from ValidationExceptions.json rename to com.unity.netcode.gameobjects/ValidationExceptions.json diff --git a/com.unity.netcode.gameobjects/ValidationExceptions.json.meta b/com.unity.netcode.gameobjects/ValidationExceptions.json.meta new file mode 100644 index 0000000000..c017492768 --- /dev/null +++ b/com.unity.netcode.gameobjects/ValidationExceptions.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 0fd8c74c16ec0334da50ceee85e39c11 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: From 3687120f92cba280985e9b4048be512c2a598082 Mon Sep 17 00:00:00 2001 From: NoelStephensUnity Date: Tue, 10 Jun 2025 09:40:29 -0500 Subject: [PATCH 08/16] style removing whitespaces --- .../ValidationExceptions.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/com.unity.netcode.gameobjects/ValidationExceptions.json b/com.unity.netcode.gameobjects/ValidationExceptions.json index 3379fe8d22..c21499a8b3 100644 --- a/com.unity.netcode.gameobjects/ValidationExceptions.json +++ b/com.unity.netcode.gameobjects/ValidationExceptions.json @@ -5,11 +5,11 @@ "ExceptionMessage": "Assembly \"Unity.Netcode.Editor.PackageChecker\" no longer exists or is no longer included in build. This change requires a new major version.", "PackageVersion": "2.4.1" }, - { - "ValidationTest": "API Validation", - "ExceptionMessage": "New assembly \"Unity.Netcode.PackageChecker.Editor\" may only be added in a new minor or major version.", - "PackageVersion": "2.4.1" - } + { + "ValidationTest": "API Validation", + "ExceptionMessage": "New assembly \"Unity.Netcode.PackageChecker.Editor\" may only be added in a new minor or major version.", + "PackageVersion": "2.4.1" + } ], "WarningExceptions": [] } From d033a846a514e40d92cab7cb2a63e1e96436b841 Mon Sep 17 00:00:00 2001 From: NoelStephensUnity Date: Tue, 10 Jun 2025 18:45:04 -0500 Subject: [PATCH 09/16] update updating change log entries --- com.unity.netcode.gameobjects/CHANGELOG.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/com.unity.netcode.gameobjects/CHANGELOG.md b/com.unity.netcode.gameobjects/CHANGELOG.md index e7a9c24b2f..3a6dccdef8 100644 --- a/com.unity.netcode.gameobjects/CHANGELOG.md +++ b/com.unity.netcode.gameobjects/CHANGELOG.md @@ -8,8 +8,14 @@ Additional documentation and release notes are available at [Multiplayer Documen ## [2.4.1] - 2025-06-02 -- Changed: Various internal orginizational changes along with a large XML API update for the test helpers API primarialy. -- Changed: Removed the multiplayer tools test project and migrated all of that to the tools repository. +### Added + +- Added: Large XML API update primarialy focused around the test helpers API. + +### Changed + +- Changed: Assembly names while keeping the same namespaces. +- Changed: Migrated multiplayer metrics tests to tools repository and removed the multiplayer tools test project. ## [2.4.0] - 2025-06-02 From 79adce261e87b18c2247b8352148eadad8924fd7 Mon Sep 17 00:00:00 2001 From: NoelStephensUnity Date: Tue, 10 Jun 2025 18:46:52 -0500 Subject: [PATCH 10/16] update Adding the unreleased section. --- com.unity.netcode.gameobjects/CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/com.unity.netcode.gameobjects/CHANGELOG.md b/com.unity.netcode.gameobjects/CHANGELOG.md index 3a6dccdef8..d2c980049e 100644 --- a/com.unity.netcode.gameobjects/CHANGELOG.md +++ b/com.unity.netcode.gameobjects/CHANGELOG.md @@ -6,6 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) Additional documentation and release notes are available at [Multiplayer Documentation](https://docs-multiplayer.unity3d.com). +## [Unreleased] + +### Added + + +### Fixed + + +### Changed + + ## [2.4.1] - 2025-06-02 ### Added From 2f5f4ba44b95ef0b53d10c7cdadf847f7ffe0678 Mon Sep 17 00:00:00 2001 From: michalChrobot Date: Wed, 11 Jun 2025 15:40:50 +0200 Subject: [PATCH 11/16] CHANGELOG date and description update --- com.unity.netcode.gameobjects/CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/com.unity.netcode.gameobjects/CHANGELOG.md b/com.unity.netcode.gameobjects/CHANGELOG.md index 3a6dccdef8..3d9f2c27f0 100644 --- a/com.unity.netcode.gameobjects/CHANGELOG.md +++ b/com.unity.netcode.gameobjects/CHANGELOG.md @@ -6,16 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) Additional documentation and release notes are available at [Multiplayer Documentation](https://docs-multiplayer.unity3d.com). -## [2.4.1] - 2025-06-02 +## [2.4.1] - 2025-06-11 ### Added -- Added: Large XML API update primarialy focused around the test helpers API. +- Added: Full XML API documentation coverage primarily focused around the test helpers API. ### Changed - Changed: Assembly names while keeping the same namespaces. -- Changed: Migrated multiplayer metrics tests to tools repository and removed the multiplayer tools test project. +- Changed: Migrated multiplayer metrics tests to Multiplayer Tools repository and removed the multiplayer tools test project. ## [2.4.0] - 2025-06-02 From e17804ffe9f678bcbc9c787bed6db93e5b85f3d5 Mon Sep 17 00:00:00 2001 From: michalChrobot Date: Wed, 11 Jun 2025 15:40:50 +0200 Subject: [PATCH 12/16] CHANGELOG date and description update --- com.unity.netcode.gameobjects/CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/com.unity.netcode.gameobjects/CHANGELOG.md b/com.unity.netcode.gameobjects/CHANGELOG.md index 73c5261ade..0a73d038c2 100644 --- a/com.unity.netcode.gameobjects/CHANGELOG.md +++ b/com.unity.netcode.gameobjects/CHANGELOG.md @@ -21,16 +21,16 @@ Additional documentation and release notes are available at [Multiplayer Documen ### Changed -## [2.4.1] - 2025-06-02 +## [2.4.1] - 2025-06-11 ### Added -- Added: Large XML API update primarialy focused around the test helpers API. +- Added: Full XML API documentation coverage primarily focused around the test helpers API. ### Changed - Changed: Assembly names while keeping the same namespaces. -- Changed: Migrated multiplayer metrics tests to tools repository and removed the multiplayer tools test project. +- Changed: Migrated multiplayer metrics tests to Multiplayer Tools repository and removed the multiplayer tools test project. ## [2.4.0] - 2025-06-02 From 69503d03c8600aabf9fa7fa79f058a6bec001da2 Mon Sep 17 00:00:00 2001 From: michalChrobot Date: Wed, 11 Jun 2025 15:44:57 +0200 Subject: [PATCH 13/16] Removed ValidationExceptions file --- .../ValidationExceptions.json | 15 --------------- .../ValidationExceptions.json.meta | 7 ------- 2 files changed, 22 deletions(-) delete mode 100644 com.unity.netcode.gameobjects/ValidationExceptions.json delete mode 100644 com.unity.netcode.gameobjects/ValidationExceptions.json.meta diff --git a/com.unity.netcode.gameobjects/ValidationExceptions.json b/com.unity.netcode.gameobjects/ValidationExceptions.json deleted file mode 100644 index c21499a8b3..0000000000 --- a/com.unity.netcode.gameobjects/ValidationExceptions.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "ErrorExceptions": [ - { - "ValidationTest": "API Validation", - "ExceptionMessage": "Assembly \"Unity.Netcode.Editor.PackageChecker\" no longer exists or is no longer included in build. This change requires a new major version.", - "PackageVersion": "2.4.1" - }, - { - "ValidationTest": "API Validation", - "ExceptionMessage": "New assembly \"Unity.Netcode.PackageChecker.Editor\" may only be added in a new minor or major version.", - "PackageVersion": "2.4.1" - } - ], - "WarningExceptions": [] -} diff --git a/com.unity.netcode.gameobjects/ValidationExceptions.json.meta b/com.unity.netcode.gameobjects/ValidationExceptions.json.meta deleted file mode 100644 index c017492768..0000000000 --- a/com.unity.netcode.gameobjects/ValidationExceptions.json.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 0fd8c74c16ec0334da50ceee85e39c11 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: From f3909dcc53f73a74910136a9d6e7e189547a1e05 Mon Sep 17 00:00:00 2001 From: NoelStephensUnity Date: Wed, 11 Jun 2025 10:28:26 -0500 Subject: [PATCH 14/16] fix Tricky assembly issue where it exposed Unity.Multiplayer.Tools.Adapters.Ngo1WithUtp2 when in editor and during tests but would fail when building. --- com.unity.netcode.gameobjects/Runtime/AssemblyInfo.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/com.unity.netcode.gameobjects/Runtime/AssemblyInfo.cs b/com.unity.netcode.gameobjects/Runtime/AssemblyInfo.cs index fe10e21733..60afe61d2e 100644 --- a/com.unity.netcode.gameobjects/Runtime/AssemblyInfo.cs +++ b/com.unity.netcode.gameobjects/Runtime/AssemblyInfo.cs @@ -20,8 +20,11 @@ #if MULTIPLAYER_TOOLS [assembly: InternalsVisibleTo("Unity.Multiplayer.Tools.GameObjects.Tests")] -[assembly: InternalsVisibleTo("Unity.Multiplayer.Tools.Adapters.Ngo1WithUtp2")] [assembly: InternalsVisibleTo("TestProject.ToolsIntegration.RuntimeTests")] [assembly: InternalsVisibleTo("TestProject.Netcode.GameObjejct.Runtime.Tests")] #endif // MULTIPLAYER_TOOLS #endif // UNITY_INCLUDE_TESTS +// Should always be visible when multiplayer tools package is instlled. +#if MULTIPLAYER_TOOLS +[assembly: InternalsVisibleTo("Unity.Multiplayer.Tools.Adapters.Ngo1WithUtp2")] +#endif From df6e37fac090618075590d40f3631c58eb74d9c7 Mon Sep 17 00:00:00 2001 From: NoelStephensUnity Date: Wed, 11 Jun 2025 11:41:05 -0500 Subject: [PATCH 15/16] style spelling in comment --- com.unity.netcode.gameobjects/Runtime/AssemblyInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.netcode.gameobjects/Runtime/AssemblyInfo.cs b/com.unity.netcode.gameobjects/Runtime/AssemblyInfo.cs index 60afe61d2e..59d36853a3 100644 --- a/com.unity.netcode.gameobjects/Runtime/AssemblyInfo.cs +++ b/com.unity.netcode.gameobjects/Runtime/AssemblyInfo.cs @@ -24,7 +24,7 @@ [assembly: InternalsVisibleTo("TestProject.Netcode.GameObjejct.Runtime.Tests")] #endif // MULTIPLAYER_TOOLS #endif // UNITY_INCLUDE_TESTS -// Should always be visible when multiplayer tools package is instlled. +// Should always be visible when multiplayer tools package is installed. #if MULTIPLAYER_TOOLS [assembly: InternalsVisibleTo("Unity.Multiplayer.Tools.Adapters.Ngo1WithUtp2")] #endif From aa350a3efd542d6400966215222cbabe1417b021 Mon Sep 17 00:00:00 2001 From: NoelStephensUnity Date: Thu, 12 Jun 2025 10:18:39 -0500 Subject: [PATCH 16/16] update Updating change log with the PR number and added information regarding the `Unity.Netcode.TestHelpers.Runtime` assembly. --- com.unity.netcode.gameobjects/CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/com.unity.netcode.gameobjects/CHANGELOG.md b/com.unity.netcode.gameobjects/CHANGELOG.md index 3d9f2c27f0..5e864c1aa0 100644 --- a/com.unity.netcode.gameobjects/CHANGELOG.md +++ b/com.unity.netcode.gameobjects/CHANGELOG.md @@ -10,12 +10,12 @@ Additional documentation and release notes are available at [Multiplayer Documen ### Added -- Added: Full XML API documentation coverage primarily focused around the test helpers API. +- Added: Full XML API documentation coverage primarily focused around the test helpers API. (#3444) ### Changed -- Changed: Assembly names while keeping the same namespaces. -- Changed: Migrated multiplayer metrics tests to Multiplayer Tools repository and removed the multiplayer tools test project. +- Changed: Assembly names while keeping the same namespaces. If your project is using the `Unity.Netcode.TestHelpers.Runtime` assembly then you need to switch `asmdef` references to `Unity.Netcode.Runtime.Tests`. (#3444) +- Changed: Migrated multiplayer metrics tests to Multiplayer Tools repository and removed the multiplayer tools test project. (#3444) ## [2.4.0] - 2025-06-02