Skip to content

Commit 657b7f1

Browse files
committed
fix: Use PresenceVal.isOn while calling CreateSession
The sample has an optional argument for whether or not a Session is a Presence Session, but it wasn't being set. This fixes that, making the samples correctly handle Presence Session creation.
1 parent f20f886 commit 657b7f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Scripts/StandardSamples/UI/MatchMaking/UISessionsMatchmakingMenu.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public void CreateNewSessionOnClick()
258258

259259
session.Attributes.Add(attribute);
260260

261-
GetEOSSessionsManager.CreateSession(session, UIOnSessionCreated);
261+
GetEOSSessionsManager.CreateSession(session, UIOnSessionCreated, this.PresenceVal.isOn);
262262
}
263263

264264
private void UIOnSessionCreated(SessionsManagerCreateSessionCallbackInfo info)

0 commit comments

Comments
 (0)