Commit c48f54d
fix: reset static fields for Fast Enter Play Mode (#3956)
* fix: reset static fields for Fast Enter Play Mode support
- Added ResetStaticsOnLoad where possible
- Applied [AutoStaticsCleanup] to generic classes when applicable
- Promoted immutable statics to readonly or const
- Added OnDisable to deregister event subscriptions
- chore: disable domain reload and remove treat warnings as errors in test project settings
- test: add NetworkManager singleton reset test for Fast Enter Play Mode
* fix: add missing message type registrations in MessageDelivery
* chore: cleanup
- Remove unused m_ParentedChildren field and related loops in NetworkTransform
- Remove unused m_DespawnedInSceneObjects field in SceneEventData
- Replace static quaternion scratch buffer in QuaternionCompressor with local variables
- Consolidate LogSerializationOrder and EnableSerializationLogs into LogConfiguration
- Update summary comments
* docs: update CHANGELOG
---------
Co-authored-by: Noel Stephens <noel.stephens@unity3d.com>
Co-authored-by: Emma <emma.mcmillan@unity3d.com>1 parent 7d03b41 commit c48f54d
32 files changed
Lines changed: 238 additions & 184 deletions
File tree
- com.unity.netcode.gameobjects
- Runtime
- Components
- Configuration
- Core
- Logging
- Messaging
- Metrics
- NetworkVariable/Serialization
- SceneManagement
- Serialization
- Transports
- SinglePlayer
- UTP
- Tests/Runtime/TestHelpers
- testproject/ProjectSettings
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
709 | | - | |
710 | 709 | | |
711 | 710 | | |
712 | 711 | | |
| |||
Lines changed: 16 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
27 | 39 | | |
28 | 40 | | |
29 | 41 | | |
| |||
1361 | 1373 | | |
1362 | 1374 | | |
1363 | 1375 | | |
1364 | | - | |
| 1376 | + | |
1365 | 1377 | | |
1366 | 1378 | | |
1367 | 1379 | | |
| |||
2062 | 2074 | | |
2063 | 2075 | | |
2064 | 2076 | | |
2065 | | - | |
2066 | | - | |
2067 | | - | |
2068 | | - | |
2069 | | - | |
2070 | | - | |
2071 | | - | |
2072 | | - | |
2073 | | - | |
2074 | | - | |
2075 | | - | |
2076 | | - | |
2077 | | - | |
2078 | 2077 | | |
2079 | 2078 | | |
2080 | 2079 | | |
| |||
2221 | 2220 | | |
2222 | 2221 | | |
2223 | 2222 | | |
2224 | | - | |
2225 | | - | |
2226 | 2223 | | |
2227 | 2224 | | |
2228 | 2225 | | |
2229 | 2226 | | |
2230 | | - | |
| 2227 | + | |
2231 | 2228 | | |
2232 | 2229 | | |
2233 | 2230 | | |
| |||
3363 | 3360 | | |
3364 | 3361 | | |
3365 | 3362 | | |
3366 | | - | |
3367 | | - | |
3368 | | - | |
3369 | | - | |
3370 | | - | |
3371 | | - | |
3372 | | - | |
3373 | | - | |
3374 | | - | |
3375 | | - | |
3376 | | - | |
3377 | | - | |
3378 | | - | |
3379 | 3363 | | |
3380 | 3364 | | |
3381 | 3365 | | |
| |||
3634 | 3618 | | |
3635 | 3619 | | |
3636 | 3620 | | |
3637 | | - | |
3638 | | - | |
3639 | 3621 | | |
3640 | 3622 | | |
3641 | 3623 | | |
| |||
3647 | 3629 | | |
3648 | 3630 | | |
3649 | 3631 | | |
3650 | | - | |
3651 | 3632 | | |
3652 | 3633 | | |
3653 | 3634 | | |
| |||
3861 | 3842 | | |
3862 | 3843 | | |
3863 | 3844 | | |
3864 | | - | |
3865 | 3845 | | |
3866 | 3846 | | |
3867 | 3847 | | |
| |||
4694 | 4674 | | |
4695 | 4675 | | |
4696 | 4676 | | |
4697 | | - | |
| 4677 | + | |
4698 | 4678 | | |
4699 | 4679 | | |
4700 | 4680 | | |
| |||
4799 | 4779 | | |
4800 | 4780 | | |
4801 | 4781 | | |
| 4782 | + | |
4802 | 4783 | | |
4803 | 4784 | | |
4804 | 4785 | | |
| |||
Lines changed: 19 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 45 | | |
49 | 46 | | |
50 | 47 | | |
| |||
54 | 51 | | |
55 | 52 | | |
56 | 53 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
61 | 58 | | |
62 | 59 | | |
63 | | - | |
| 60 | + | |
64 | 61 | | |
65 | | - | |
66 | | - | |
| 62 | + | |
| 63 | + | |
67 | 64 | | |
68 | 65 | | |
69 | | - | |
70 | 66 | | |
71 | 67 | | |
72 | 68 | | |
73 | 69 | | |
74 | 70 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
89 | 79 | | |
90 | 80 | | |
91 | 81 | | |
| |||
111 | 101 | | |
112 | 102 | | |
113 | 103 | | |
114 | | - | |
| 104 | + | |
115 | 105 | | |
116 | 106 | | |
117 | 107 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
Lines changed: 25 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 33 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 34 | + | |
47 | 35 | | |
48 | 36 | | |
49 | | - | |
| 37 | + | |
50 | 38 | | |
51 | 39 | | |
52 | 40 | | |
| 41 | + | |
53 | 42 | | |
54 | 43 | | |
55 | | - | |
56 | | - | |
| 44 | + | |
| 45 | + | |
57 | 46 | | |
58 | | - | |
| 47 | + | |
59 | 48 | | |
60 | 49 | | |
61 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1299 | 1299 | | |
1300 | 1300 | | |
1301 | 1301 | | |
1302 | | - | |
1303 | | - | |
1304 | 1302 | | |
1305 | 1303 | | |
1306 | 1304 | | |
| |||
0 commit comments