Having trouble getting player count on Fusion
Anyone have ideas on what I'm doing wrong, or alternatives to getting a player count from a networked session?
int playerCount = Runner.SessionInfo.PlayerCount;
int maxCount = Runner.SessionInfo.MaxPlayers;
are both returning 0 for me.
This is coming from an object with a NetworkObject component attached to an object that has a script that is a NetworkBehaviour. No console errors. They are also only called after Spawned() is called.
Any help would be greatly appreciated!