Hi guys,
I’ve a strange behavior since I add in the code the entityDisplays List. The UI don’t update but it looks like the code is correct. Ive set some debug logs as show:
case NetworkListEvent<LeaderBoardEntityState>.EventType.Add:
if (!entityDisplays.Any(x => x.ClientId == changeEvent.Value.ClientId))
{
LeaderBoardEntityDisplay leaderboardEntity = Instantiate(leaderBoardEntityPrefab, leaderBoardEntityHolder);
Debug.Log(changeEvent.Value.PlayerName);
leaderboardEntity.Initialise(
changeEvent.Value.ClientId,
changeEvent.Value.PlayerName,
changeEvent.Value.Coins);
entityDisplays.Add(leaderboardEntity);
Debug.Log(entityDisplays.Count);
}
break;
When the host and a player spwan I m able to see in the console their name and that the list count increase. In the UI I’ve only the Host player and nothing show up
What could be wrong here?
Thanks