Add UGS Sessions online hosting with no port-forwarding
Players can now host and join over the internet without port-forwarding via Unity Gaming Services Relay + Lobby, exposed through the unified Multiplayer Services SDK (Sessions API). - OnlineSessionManager: anonymous auth, CreateSessionAsync (public, relay-backed), QuerySessionsAsync server browser, JoinSessionByIdAsync, and session leave wired into the existing net-stop teardown. - Per-install auth profile derived from the project path (mirror_<sha1(dataPath)>) so junction-mirror clones get distinct UGS player ids, avoiding the same-machine 409 LobbyConflict on join. - Install com.unity.services.multiplayer 2.2.4 (pulls Relay/Lobby/ Authentication/Core) and attach OnlineSessionManager to the NetworkManager in Main. Loopback dev flow (NetworkBootstrap H/C/J/K) is left untouched; the online path is additive. MatchManager and gameplay are unchanged since Sessions starts the host/client through NGO as before. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
f706cdb5a7
commit
f8b11be290
8 files changed
+385
-2
No files matched your search
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 64babb133b483be49972dd184b31d84b
|
||||
Reference in new issue
Block a user