Skip to content

Commit e48babb

Browse files
Merge pull request #872 from Unity-Technologies/release/2.4.0
release: v2.4.0
2 parents 1b5d166 + 0bd36bf commit e48babb

18 files changed

+91
-56
lines changed

Assets/Scripts/Gameplay/GameState/ServerBossRoomState.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,13 @@ void SpawnPlayer(ulong clientId, bool lateJoin)
204204
}
205205
}
206206

207-
networkAvatarGuidState.AvatarGuid.Value =
208-
persistentPlayer.NetworkAvatarGuidState.AvatarGuid.Value;
207+
// instantiate new NetworkVariables with a default value to ensure they're ready for use on OnNetworkSpawn
208+
networkAvatarGuidState.AvatarGuid = new NetworkVariable<NetworkGuid>(persistentPlayer.NetworkAvatarGuidState.AvatarGuid.Value);
209209

210210
// pass name from persistent player to avatar
211211
if (newPlayer.TryGetComponent(out NetworkNameState networkNameState))
212212
{
213-
networkNameState.Name.Value = persistentPlayer.NetworkNameState.Name.Value;
213+
networkNameState.Name = new NetworkVariable<FixedPlayerName>(persistentPlayer.NetworkNameState.Name.Value);
214214
}
215215

216216
// spawn players characters with destroyWithScene = true

Assets/Scripts/Infrastructure/PubSub/NetworkedMessageChannel.cs

+6
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ public override void Publish(T message)
7575

7676
void SendMessageThroughNetwork(T message)
7777
{
78+
// Avoid throwing an exception if you are in the middle of shutting down and either
79+
// NetworkManager no longer exists or the CustomMessagingManager no longer exists.
80+
if (m_NetworkManager == null || m_NetworkManager.CustomMessagingManager == null)
81+
{
82+
return;
83+
}
7884
var writer = new FastBufferWriter(FastBufferWriter.GetWriteSize<T>(), Allocator.Temp);
7985
writer.WriteValueSafe(message);
8086
m_NetworkManager.CustomMessagingManager.SendNamedMessageToAll(m_Name, writer);
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:b276240933fdda078fe3a462a4729dbade38d49a9ae51cc6eaad477907cb2ac9
3-
size 3493
2+
oid sha256:156f546b1b47dd12ebf17462717d52e8b9225b90057649a6f994d1b9a05df6d3
3+
size 3673
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:08ba74e6bb58af1ca915ad7e9f6bdcc451d2604be3bf6a8621a9a91f83ac747c
3-
size 3501
2+
oid sha256:664825d50ebaca88798a13d93675e3c4c5bb7d155e963ee13cf2bc79f5f8d86f
3+
size 3681
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:b3fa683710f40f40512976e3bdae2171c9ba488c985f87995fd0577839347cd6
3-
size 3493
2+
oid sha256:6031aaba9d7ac0ca61ea9f6cc34c9133e0b65e4be56559ca2641975bfb980f54
3+
size 3673
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:d20bce9da6b76d3fb037333159f05170ad0e75d5f4df6414bcca8c368585f501
3-
size 3495
2+
oid sha256:e410deed7cd331c908f7de7defdf7a2994eb002e3384c8ad69357c033d25b665
3+
size 3675

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66

77
Additional documentation and release notes are available at [Multiplayer Documentation](https://docs-multiplayer.unity3d.com).
88

9+
## [2.4.0] - 2023-12-13
10+
11+
### Changed
12+
* Upgraded editor version to 2022.3.14f1 (#871)
13+
* com.unity.ai.navigation upgraded to v1.1.5
14+
* com.unity.render-pipelines.universal upgraded to v14.0.9
15+
* com.unity.services.authentication upgraded to v2.7.1
16+
* Upgraded Boss Room to Netcode for GameObjects v1.7.1 (#871)
17+
18+
### Fixed
19+
* Fixed NetworkVariable warnings that would be logged when a player was spawned (#863) For a player, certain NetworkVariable values were previously modified before the player's NetworkObject was spawned, resulting in warnings. Now, the NetworkVariable itself is instantiated on the server pre-spawn, such that it is instantiated with the new default value, ensuring the new default value is ready to be read on subsequent OnNetworkSpawn methods for said NetworkObject.
20+
921
## [2.3.0] - 2023-09-07
1022

1123
### Changed

Documentation/Images/BuildProject.png

+2-2
Loading

Documentation/Images/StartupScene.png

+2-2
Loading

Packages/com.unity.multiplayer.samples.coop/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Multiplayer Samples Co-op Changelog
22

3+
## [1.8.0] - 2023-12-13
4+
5+
### Changed
6+
* Upgraded Utilities package to Netcode for GameObjects v1.7.1 (#871)
7+
38
## [1.7.0] - 2023-09-07
49

510
### Changed
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "com.unity.multiplayer.samples.coop",
33
"displayName": "Multiplayer Samples Utilities",
4-
"version": "1.6.1",
4+
"version": "1.8.0",
55
"type": "template",
66
"host": "hub",
77
"unity": "2020.3",
88
"description": "Utilities package built on top of Netcode for GameObjects, providing useful scripts and tools.",
99
"dependencies": {
1010
"com.unity.learn.iet-framework": "3.1.3",
1111
"com.unity.multiplayer.tools": "1.1.0",
12-
"com.unity.netcode.gameobjects": "1.6.0",
12+
"com.unity.netcode.gameobjects": "1.7.1",
1313
"com.unity.services.relay": "1.0.5"
1414
}
1515
}

Packages/manifest.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
22
"dependencies": {
33
"com.unity.2d.sprite": "1.0.0",
4-
"com.unity.ai.navigation": "1.1.4",
4+
"com.unity.ai.navigation": "1.1.5",
55
"com.unity.cinemachine": "2.9.5",
6-
"com.unity.collab-proxy": "2.0.5",
7-
"com.unity.ide.rider": "3.0.24",
8-
"com.unity.ide.visualstudio": "2.0.18",
6+
"com.unity.collab-proxy": "2.2.0",
7+
"com.unity.ide.rider": "3.0.26",
8+
"com.unity.ide.visualstudio": "2.0.22",
99
"com.unity.ide.vscode": "1.2.5",
1010
"com.unity.learn.iet-framework": "3.1.3",
11-
"com.unity.memoryprofiler": "1.0.0",
11+
"com.unity.memoryprofiler": "1.1.0",
1212
"com.unity.multiplayer.tools": "2.0.0-pre.3",
13-
"com.unity.netcode.gameobjects": "1.6.0",
13+
"com.unity.netcode.gameobjects": "1.7.1",
1414
"com.unity.performance.profile-analyzer": "1.2.2",
1515
"com.unity.postprocessing": "3.2.2",
16-
"com.unity.render-pipelines.universal": "14.0.8",
17-
"com.unity.services.authentication": "2.7.1",
16+
"com.unity.render-pipelines.universal": "14.0.9",
17+
"com.unity.services.authentication": "2.7.2",
1818
"com.unity.services.lobby": "1.1.0",
1919
"com.unity.services.relay": "1.0.5",
2020
"com.unity.test-framework": "1.1.33",
2121
"com.unity.textmeshpro": "3.0.6",
22-
"com.unity.timeline": "1.7.5",
22+
"com.unity.timeline": "1.7.6",
2323
"com.unity.toolchain.macos-x86_64-linux-x86_64": "2.0.4",
2424
"com.unity.transport": "2.0.2",
2525
"com.unity.ugui": "1.0.0",

Packages/packages-lock.json

+31-22
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dependencies": {}
88
},
99
"com.unity.ai.navigation": {
10-
"version": "1.1.4",
10+
"version": "1.1.5",
1111
"depth": 0,
1212
"source": "registry",
1313
"dependencies": {
@@ -16,7 +16,7 @@
1616
"url": "https://packages.unity.com"
1717
},
1818
"com.unity.burst": {
19-
"version": "1.8.7",
19+
"version": "1.8.10",
2020
"depth": 1,
2121
"source": "registry",
2222
"dependencies": {
@@ -34,7 +34,7 @@
3434
"url": "https://packages.unity.com"
3535
},
3636
"com.unity.collab-proxy": {
37-
"version": "2.0.5",
37+
"version": "2.2.0",
3838
"depth": 0,
3939
"source": "registry",
4040
"dependencies": {},
@@ -66,7 +66,7 @@
6666
"url": "https://packages.unity.com"
6767
},
6868
"com.unity.ide.rider": {
69-
"version": "3.0.24",
69+
"version": "3.0.26",
7070
"depth": 0,
7171
"source": "registry",
7272
"dependencies": {
@@ -75,7 +75,7 @@
7575
"url": "https://packages.unity.com"
7676
},
7777
"com.unity.ide.visualstudio": {
78-
"version": "2.0.18",
78+
"version": "2.0.22",
7979
"depth": 0,
8080
"source": "registry",
8181
"dependencies": {
@@ -108,7 +108,7 @@
108108
"url": "https://packages.unity.com"
109109
},
110110
"com.unity.memoryprofiler": {
111-
"version": "1.0.0",
111+
"version": "1.1.0",
112112
"depth": 0,
113113
"source": "registry",
114114
"dependencies": {
@@ -123,7 +123,7 @@
123123
"dependencies": {
124124
"com.unity.learn.iet-framework": "3.1.3",
125125
"com.unity.multiplayer.tools": "1.1.0",
126-
"com.unity.netcode.gameobjects": "1.6.0",
126+
"com.unity.netcode.gameobjects": "1.7.1",
127127
"com.unity.services.relay": "1.0.5"
128128
}
129129
},
@@ -143,12 +143,12 @@
143143
"url": "https://packages.unity.com"
144144
},
145145
"com.unity.netcode.gameobjects": {
146-
"version": "1.6.0",
146+
"version": "1.7.1",
147147
"depth": 0,
148148
"source": "registry",
149149
"dependencies": {
150150
"com.unity.nuget.mono-cecil": "1.10.1",
151-
"com.unity.transport": "1.3.4"
151+
"com.unity.transport": "1.4.0"
152152
},
153153
"url": "https://packages.unity.com"
154154
},
@@ -190,7 +190,7 @@
190190
"url": "https://packages.unity.com"
191191
},
192192
"com.unity.render-pipelines.core": {
193-
"version": "14.0.8",
193+
"version": "14.0.9",
194194
"depth": 1,
195195
"source": "builtin",
196196
"dependencies": {
@@ -201,14 +201,23 @@
201201
}
202202
},
203203
"com.unity.render-pipelines.universal": {
204-
"version": "14.0.8",
204+
"version": "14.0.9",
205205
"depth": 0,
206206
"source": "builtin",
207207
"dependencies": {
208208
"com.unity.mathematics": "1.2.1",
209-
"com.unity.burst": "1.8.4",
210-
"com.unity.render-pipelines.core": "14.0.8",
211-
"com.unity.shadergraph": "14.0.8"
209+
"com.unity.burst": "1.8.9",
210+
"com.unity.render-pipelines.core": "14.0.9",
211+
"com.unity.shadergraph": "14.0.9",
212+
"com.unity.render-pipelines.universal-config": "14.0.9"
213+
}
214+
},
215+
"com.unity.render-pipelines.universal-config": {
216+
"version": "14.0.9",
217+
"depth": 1,
218+
"source": "builtin",
219+
"dependencies": {
220+
"com.unity.render-pipelines.core": "14.0.9"
212221
}
213222
},
214223
"com.unity.searcher": {
@@ -219,7 +228,7 @@
219228
"url": "https://packages.unity.com"
220229
},
221230
"com.unity.services.authentication": {
222-
"version": "2.7.1",
231+
"version": "2.7.2",
223232
"depth": 0,
224233
"source": "registry",
225234
"dependencies": {
@@ -231,7 +240,7 @@
231240
"url": "https://packages.unity.com"
232241
},
233242
"com.unity.services.core": {
234-
"version": "1.10.1",
243+
"version": "1.12.0",
235244
"depth": 1,
236245
"source": "registry",
237246
"dependencies": {
@@ -290,13 +299,13 @@
290299
"url": "https://packages.unity.com"
291300
},
292301
"com.unity.services.wire": {
293-
"version": "1.2.0",
302+
"version": "1.2.2",
294303
"depth": 1,
295304
"source": "registry",
296305
"dependencies": {
297-
"com.unity.services.core": "1.10.1",
306+
"com.unity.services.core": "1.11.0",
298307
"com.unity.nuget.newtonsoft-json": "3.2.1",
299-
"com.unity.services.authentication": "2.6.1"
308+
"com.unity.services.authentication": "2.7.2"
300309
},
301310
"url": "https://packages.unity.com"
302311
},
@@ -308,11 +317,11 @@
308317
"url": "https://packages.unity.com"
309318
},
310319
"com.unity.shadergraph": {
311-
"version": "14.0.8",
320+
"version": "14.0.9",
312321
"depth": 1,
313322
"source": "builtin",
314323
"dependencies": {
315-
"com.unity.render-pipelines.core": "14.0.8",
324+
"com.unity.render-pipelines.core": "14.0.9",
316325
"com.unity.searcher": "4.9.2"
317326
}
318327
},
@@ -353,7 +362,7 @@
353362
"url": "https://packages.unity.com"
354363
},
355364
"com.unity.timeline": {
356-
"version": "1.7.5",
365+
"version": "1.7.6",
357366
"depth": 0,
358367
"source": "registry",
359368
"dependencies": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:361bce09d25b168055f616f3b0691fa9df29bc6988f911c21f399571e619f268
3+
size 536

ProjectSettings/ProjectSettings.asset

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:64b4451c53ca78def1a82ed366a92399fce17e936d3c4e4e370f3f5b57d3f9ad
3-
size 26959
2+
oid sha256:c305de9f19f2ab071f091fca48e1b73d28ed84ad2a8ddf6feb1fc1eb86bee308
3+
size 27052

ProjectSettings/ProjectVersion.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
m_EditorVersion: 2022.3.7f1
2-
m_EditorVersionWithRevision: 2022.3.7f1 (b16b3b16c7a0)
1+
m_EditorVersion: 2022.3.14f1
2+
m_EditorVersionWithRevision: 2022.3.14f1 (eff2de9070d8)
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:16a92b7409c2b1f39a3a4c3b49ec6c6ab3a641e55eaaa8f47101026758e3339c
3-
size 463
2+
oid sha256:dd7b0e5c5b40aea5d5c546731cb576959d0829155cddf50e862a0be072195ca9
3+
size 489

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<br>
77

88
[![UnityVersion](https://img.shields.io/badge/Unity%20Version:-2022.3%20LTS-57b9d3.svg?logo=unity&color=2196F3)](https://unity.com/releases/editor/whats-new/2022.3.0)
9-
[![NetcodeVersion](https://img.shields.io/badge/Netcode%20Version:-1.6.0-57b9d3.svg?logo=unity&color=2196F3)](https://docs-multiplayer.unity3d.com/netcode/1.6.0/about)
10-
[![LatestRelease](https://img.shields.io/badge/Latest%20Github%20Release:-v2.3.0-57b9d3.svg?logo=github&color=brightgreen)](https://github.com/Unity-Technologies/com.unity.multiplayer.samples.coop/releases/tag/v2.3.0)
9+
[![NetcodeVersion](https://img.shields.io/badge/Netcode%20Version:-1.7.1-57b9d3.svg?logo=unity&color=2196F3)](https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/releases/tag/ngo%2F1.7.1)
10+
[![LatestRelease](https://img.shields.io/badge/Latest%20Github%20Release:-v2.4.0-57b9d3.svg?logo=github&color=brightgreen)](https://github.com/Unity-Technologies/com.unity.multiplayer.samples.coop/releases/tag/v2.4.0)
1111
<br><br>
1212

1313
Boss Room is a fully functional co-op multiplayer RPG made with Unity Netcode. It is an educational sample designed to showcase typical netcode [patterns](https://docs-multiplayer.unity3d.com/netcode/current/learn/bossroom/bossroom-actions/index.html) that are frequently featured in similar multiplayer games.

0 commit comments

Comments
 (0)