Hello,
I’m trying to use ReadLeaderboard() with no success. The problem is that I don’t seem to find a way to retrieve all PlayerUniqueNetIDs.
The clossest I could get was
TArray<FUniqueNetIdRef> LocPlayerIDs;
TArray<APlayerState*> PlayerStates = GetWorld()->GetGameState()->PlayerArray;
for (APlayerState* PlayerState : PlayerStates)
{
PlayerIDs.Add(PlayerState->GetUniqueId()->AsShared());
}
Which compiles fine but crashes when I run the function in the game.
Any help greatly appreciated… Thanks