Search code examples
unity-game-enginegamesparks

Is there a way to get Online status via PlayerId in Gamesparks


I have a saved list of my friends name and playerId via Gamesparks. I want to know if they are online/offline. Can I do that using their respective playerIds ?


Solution

  • To lookup a player's online status using their ID:

    Spark.loadPlayer(myPlayerID).isOnline()
    

    SparkPlayer documentation