Closed almondjoycam closed 1 year ago
You can try using AuthenticationService.Instance.SessionTokenExists
(Boolean) when signing in the player. If the value returns true
, the player already has a profile. Otherwise, the game will call AuthenticationService.Instance.SignInAnonymouslyAsync()
and create a new profile. That is when you know that this is the first time, and then you can call a tutorial event function to display the first-time UI. There's an example on Sign in a cached user.
I'm not sure if this works the way I think it does, but it is worth trying for sure.
Tutorials are hard to make
The playtester consensus currently is that there should be a first-time player tutorial.
For now, it would probably be a good idea to create a UI system that will happen every time a user logs in, regardless of whether they exist or not.
However, I'm trying to look into the Unity Authentication SDK to determine when a new player ID is created. I'll keep updating in the comments.