Skip to content

Commit 3207646

Browse files
feat: DistributedAuthoritySample Netcode for GameObjects & Multiplayer SDK package upgrade, scripting fix, editor upgrade (#203)
NGO & Multiplayer SDK package upgrade, scripting fix, editor upgrade
1 parent f60fb52 commit 3207646

File tree

5 files changed

+46
-31
lines changed

5 files changed

+46
-31
lines changed

Experimental/DistributedAuthoritySample/Assets/Scripts/Temp/ServicesHelper.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ async Task ConnectThroughLiveService(string sessionName)
9999
{
100100
try
101101
{
102-
var options = new CreateSessionOptions(100)
102+
var options = new SessionOptions()
103103
{
104104
Name = sessionName,
105-
MaxPlayers = 100,
106-
};
105+
MaxPlayers = 64,
106+
}.WithDistributedAuthorityNetwork();
107107

108108
if (m_LastSession == null)
109109
{
110-
m_LastSession = await MultiplayerService.Instance.CreateOrJoinSessionAsync(sessionName, options.WithDistributedConnection());
110+
m_LastSession = await MultiplayerService.Instance.CreateOrJoinSessionAsync(sessionName, options);
111111
}
112112
else
113113
{

Experimental/DistributedAuthoritySample/Packages/manifest.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"dependencies": {
33
"com.unity.ai.navigation": "2.0.0",
44
"com.unity.cinemachine": "2.10.1",
5-
"com.unity.collab-proxy": "2.4.3",
6-
"com.unity.ide.rider": "3.0.28",
5+
"com.unity.collab-proxy": "2.4.4",
6+
"com.unity.ide.rider": "3.0.31",
77
"com.unity.ide.visualstudio": "2.0.22",
8-
"com.unity.inputsystem": "1.8.2",
9-
"com.unity.multiplayer.playmode": "1.2.0",
8+
"com.unity.inputsystem": "1.9.0",
9+
"com.unity.multiplayer.playmode": "1.2.1",
1010
"com.unity.multiplayer.tools": "2.1.0",
11-
"com.unity.netcode.gameobjects": "https://github.com/Unity-Technologies/com.unity.netcode.gameobjects.git?path=com.unity.netcode.gameobjects#develop-2.0.0",
11+
"com.unity.netcode.gameobjects": "2.0.0-pre.3",
1212
"com.unity.render-pipelines.universal": "17.0.3",
13-
"com.unity.services.multiplayer": "0.4.2",
13+
"com.unity.services.multiplayer": "1.0.0-pre.1",
1414
"com.unity.services.vivox": "16.3.0",
1515
"com.unity.test-framework": "1.4.4",
1616
"com.unity.timeline": "1.8.7",

Experimental/DistributedAuthoritySample/Packages/packages-lock.json

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://packages.unity.com"
1111
},
1212
"com.unity.burst": {
13-
"version": "1.8.16",
13+
"version": "1.8.17",
1414
"depth": 1,
1515
"source": "registry",
1616
"dependencies": {
@@ -29,7 +29,7 @@
2929
"url": "https://packages.unity.com"
3030
},
3131
"com.unity.collab-proxy": {
32-
"version": "2.4.3",
32+
"version": "2.4.4",
3333
"depth": 0,
3434
"source": "registry",
3535
"dependencies": {},
@@ -55,7 +55,7 @@
5555
"url": "https://packages.unity.com"
5656
},
5757
"com.unity.ide.rider": {
58-
"version": "3.0.28",
58+
"version": "3.0.31",
5959
"depth": 0,
6060
"source": "registry",
6161
"dependencies": {
@@ -73,7 +73,7 @@
7373
"url": "https://packages.unity.com"
7474
},
7575
"com.unity.inputsystem": {
76-
"version": "1.8.2",
76+
"version": "1.9.0",
7777
"depth": 0,
7878
"source": "registry",
7979
"dependencies": {
@@ -89,7 +89,7 @@
8989
"url": "https://packages.unity.com"
9090
},
9191
"com.unity.multiplayer.playmode": {
92-
"version": "1.2.0",
92+
"version": "1.2.1",
9393
"depth": 0,
9494
"source": "registry",
9595
"dependencies": {
@@ -113,14 +113,14 @@
113113
"url": "https://packages.unity.com"
114114
},
115115
"com.unity.netcode.gameobjects": {
116-
"version": "https://github.com/Unity-Technologies/com.unity.netcode.gameobjects.git?path=com.unity.netcode.gameobjects#develop-2.0.0",
116+
"version": "2.0.0-pre.3",
117117
"depth": 0,
118-
"source": "git",
118+
"source": "registry",
119119
"dependencies": {
120120
"com.unity.nuget.mono-cecil": "1.11.4",
121-
"com.unity.transport": "2.2.1"
121+
"com.unity.transport": "2.3.0"
122122
},
123-
"hash": "8f71c14ce4c77d482a9204a1907e7139fefef673"
123+
"url": "https://packages.unity.com"
124124
},
125125
"com.unity.nuget.mono-cecil": {
126126
"version": "1.11.4",
@@ -216,22 +216,37 @@
216216
},
217217
"url": "https://packages.unity.com"
218218
},
219+
"com.unity.services.deployment": {
220+
"version": "1.3.0",
221+
"depth": 1,
222+
"source": "registry",
223+
"dependencies": {
224+
"com.unity.services.deployment.api": "1.0.0",
225+
"com.unity.services.core": "1.12.0"
226+
},
227+
"url": "https://packages.unity.com"
228+
},
229+
"com.unity.services.deployment.api": {
230+
"version": "1.0.0",
231+
"depth": 2,
232+
"source": "registry",
233+
"dependencies": {},
234+
"url": "https://packages.unity.com"
235+
},
219236
"com.unity.services.multiplayer": {
220-
"version": "0.4.2",
237+
"version": "1.0.0-pre.1",
221238
"depth": 0,
222239
"source": "registry",
223240
"dependencies": {
224241
"com.unity.modules.unitywebrequest": "1.0.0",
225-
"com.unity.modules.unitywebrequestassetbundle": "1.0.0",
226-
"com.unity.modules.unitywebrequestaudio": "1.0.0",
227-
"com.unity.modules.unitywebrequesttexture": "1.0.0",
228-
"com.unity.modules.unitywebrequestwww": "1.0.0",
229242
"com.unity.nuget.newtonsoft-json": "3.2.1",
230-
"com.unity.services.authentication": "3.1.0",
231-
"com.unity.services.core": "1.12.1",
243+
"com.unity.services.authentication": "3.3.3",
244+
"com.unity.services.core": "1.13.0",
232245
"com.unity.services.qos": "1.3.0",
233-
"com.unity.services.wire": "1.2.3",
234-
"com.unity.transport": "1.4.1"
246+
"com.unity.services.wire": "1.2.6",
247+
"com.unity.transport": "2.2.1",
248+
"com.unity.collections": "2.2.1",
249+
"com.unity.services.deployment": "1.3.0"
235250
},
236251
"url": "https://packages.unity.com"
237252
},
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
m_EditorVersion: 6000.0.11f1
2-
m_EditorVersionWithRevision: 6000.0.11f1 (fa01dd6b76d5)
1+
m_EditorVersion: 6000.0.13f1
2+
m_EditorVersionWithRevision: 6000.0.13f1 (53a692e3fca9)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"PlayerTags": [],
3-
"version": "1.2.0"
3+
"version": "1.2.1"
44
}

0 commit comments

Comments
 (0)