---------------------- Hmm, I don't know enough to give you a confident answer yet. The provided knowledge sources do not contain specific information on how to wait for four players to connect before starting a game in NormalVR. However, you can typically achieve this by using a counter to track the number of connected players and starting the game when the counter reaches four.
For more detailed information, I recommend checking the NormalVR documentation(https://normcore.io/documentation/). ---------------------- Note: you can ask me a follow up question by @ mentioning me again ----------------------
you can create an actual lobby scene + room but if you use a custom data sync to tell players which scene to load you'll have to wait 0.1 seconds to make sure the server gets the data before you switch scenes or use something like a string dictionary callback
he means if you are clientID 3 there's maybe 4 players in the room but that's not a guarantee as client IDs can be skipped or reused if someone leaves. A better option is to check the unity lobby player count or use avatar manager avatars list
using System; using Normal.Realtime; using UnityEngine;
public class UpdateAvatar : MonoBehaviour { public static int intClientID; public static event Action<bool> LocalPlayerConnected; public static RealtimeAvatarManager _realtimeAvatarManager; public static RealtimeAvatar _realtimeAvatar; public static Realtime _realtime;