Current number of players in connected lens
I was playing around multiplayer experiences with connected lenses in Studio. I know that a total of 64 players can join the session at a time.
But I want to know how can I keep a check on the current number of players that joined the session so that I can restrict to a total of 2 players only? Can't find the exact property for that. Can anyone help?
By the way I am using the friendlist (remote) version as the invitation mode
Comments
-
Hi!
You can use maxNumberOfInvitations property of the ConnectedLensSessionOptionsAdditionally if using Sync Framework https://docs.snap.com/lens-studio/references/templates/interactive/sync-framework#sessioncontroller-api there are a bunch of convenient api functions to get information about users
2 -
Thanks, @Olha . The property was useful in achieving what I was looking for
1