Is it possible to add Steam friends with the friends system? We’re authenticating using Steam ids, but it looks like Steam friends aren’t showing up when looking through the list of friends, is there a way to add them?
if you connect your players with
await AuthenticationService.Instance.SignInWithSteamAsync(sessionTicket, identity);
you receive a cached playerId, i.e. each time the user logs in they will receive the same playerId
Authentication.instance.PlayerName will be automatically set with the steam nickname + #1234 (randomly generated at each connection)
(correct me if I’m wrong, I haven’t tried yet with an account where the steam nickname contains spaces)
this therefore gives as an example player#3728
it is therefore player#3278 that must be entered in addFriend and the relationship will then be made by playerId so even when the players reconnect and receive a different player# the relationship will be maintained
For the display I personally modified the scripts a little to display only the nickname without the # only in the friends list
playerName.Split(“#”)[0]
(Maybe the api updates it automatically?)
Hi,
Unity friends does not integrate steam friends lists into the unity friends list. You would need to implement that functionality separately.