Commit 5422a77
Unity Technologies
## [1.9.1] - 2025-10-11
### Changed
* Host migration system now caches the ghost component types it uses when collecting host migration ghost data, resulting in faster host migration data collections. It's updated any time the ghost prefab count changes.
* `GhostField.Quantization` template mismatch errors are now warnings, and will resolve to working code, rather than outputting errors. As a result, we will no longer assume primitive integer types want to disable quantization, as that logic did not cover all cases (e.g. like `Entity` structs etc).
* Host migration internal ghost data gathering has improved and should be faster now but add a few bytes of extra data compared to before.
### Fixed
* Occasional `MultiplayerPlayModeWindow.HandleHyperLinkArgs` truncation error spam.
* Unsafe compiler error when using a `fixed` array as a `GhostField`. [Note: You must implement a corresponding safe accessor method implementing ref returns](https://docs.unity3d.com/Packages/com.unity.netcode@latest?subfolder=/manual/ghost-types-templates.html#supporting-unsafe-fixed-tconst).
* `GhostField` compiler error when using `FixedList` with nested `struct` types, as well as related `InvalidOperationException` in a `SubString` call when using a `FixedList` with a primitive type.
* Code generator incorrectness when generating struct fields for `GhostField` `FixedList` and `fixed` array serializers (`Entity` fields in particular).
* Incorrect `curChangeMaskBits` offset after a `FixedList` field is generated, due to incorrect `aggregateChangeMask` flag. It's now forced correct via `forceComposite`.
* `FixedList`'s and `unsafe fixed array`) now correctly support non-public structs for the element type (in cases where we know the code-gen will resolve without compiler errors).
* `GhostSnapshotValueEntity` now uses `TryGetValue` rather than a `HasComponent` call followed by a lookup, reducing lookup costs.
* Issue where specifying a `LogLevel` (via the `Default.globalconfig`'s `unity.netcode.sourcegenerator.logging_level` property) did nothing.
1 parent 70c9ce6 commit 5422a77
File tree
108 files changed
+4611
-1181
lines changed- Documentation~
- testing
- Editor
- InternalDocs~
- CodeMap
- Images
- Topics
- Runtime
- HostMigration
- Snapshot
- SourceGenerators
- Source~
- NetCodeSourceGenerator
- CodeGenerator
- Generators
- Helpers
- Tests
- Templates
- DefaultTypes
- FixedList
- StateSave
- Tests
- Editor
- Debugging
- Runtime/Utils
- TestWorld
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
108 files changed
+4611
-1181
lines changedBinary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
6 | 27 | | |
7 | 28 | | |
8 | 29 | | |
| |||
35 | 56 | | |
36 | 57 | | |
37 | 58 | | |
38 | | - | |
39 | | - | |
40 | 59 | | |
41 | 60 | | |
42 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
0 commit comments