Hello everyone, I am having an issue with trying to set up Unity player accounts. When I try to add using Unity.Services.Authentication.PlayerAccounts i get “The type or namespace name ‘PlayerAccounts’ does not exist in the namespace ‘Unity.Services.Authentication’ (are you missing an assembly reference?)” I have followed the steps on Unity Player Accounts and when I had to add the void Awake() method I got an error with the PlayerAccountService.Instance.SignedIn. Looking into that error I noticed I was missing the namespace mentioned above. However, I can not find any solution to this issue. I have been to the unity dashboard and set up the Unity Player Account there. I also checked that my client id matched what was shown in the editor. In some of the videos I have watched covering this topic, I also noticed that Player Account Settings are missing in the project settings. What am I missing?
1 Like
Do you have the Authentication package installed? See Package Manager.
Are you using Assembly Definitions? If so, you will have to add one or more dependencies to the necessary Authentication assemblies to your script’s asmdef. If in doubt, just add all of them minus the “editor” and “test” specific assemblies.
Yes i have added the Authentication package installed. But i am not sure what assemby definition are.
I fixed the issue by updating Unity and Visual Studios to their most up-to-date version.