- Home /
Social.localUser.userName == "Lerpz"
Following the instructions on the Play Game Services page (https://github.com/playgameservices/play-games-plugin-for-unity), I always get a user named Lerpz after authenticating. How do I authenticate a legitimate user instead of the default?
I/Unity (32711): Success: True
I/Unity (32711): UnityEngine.Debug:Internal_Log(Int32, String, Object)
I/Unity (32711): UnityEngine.Debug:Log(Object)
I/Unity (32711): ShowLeaderboard:<OnShowLeaderboard>m__112(Boolean) (at /Users/MaskedPixel/Development/Unity/weeklys/Week05/Assets/GreatWhiteFlight/Scripts/Util/UI/ShowLeaderboard.cs:12)
I/Unity (32711): UnityEngine.SocialPlatforms.Local:UnityEngine.SocialPlatforms.ISocialPlatform.Authenticate(ILocalUser, Action`1)
I/Unity (32711): UnityEngine.SocialPlatforms.Impl.LocalUser:Authenticate(Action`1)
I/Unity (32711): ShowLeaderboard:OnShowLeaderboard() (at /Users/MaskedPixel/Development/Unity/weeklys/Week05/Assets/GreatWhiteFlight/Scripts/Util/UI/ShowLeaderboard.cs:11)
I/Unity (32711): UnityEngine.Events.InvokableCall:Invoke(Object[])
I/Unity (32711): UnityEngine.Events.InvokableCallList:Invoke(Object[])
I/Unity (32711): UnityEngine.Events.UnityEventBase:Invoke(Object[])
I/Unity (32711): UnityEngine.Events.UnityEvent:Invoke()
I/Unity (32711): UnityEngine.UI.Button:Press() (at /Users/builduser/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:35)
I/Unity (32711): UnityEngine.UI.Button:OnPointerClick(PointerEventData) (at /Users/builduser/buildslave/unity/bu
I/Unity (32711): Username: Lerpz
I/Unity (32711): UnityEngine.Debug:Internal_Log(Int32, String, Object)
I/Unity (32711): UnityEngine.Debug:Log(Object)
I/Unity (32711): ShowLeaderboard:<OnShowLeaderboard>m__112(Boolean) (at /Users/MaskedPixel/Development/Unity/weeklys/Week05/Assets/GreatWhiteFlight/Scripts/Util/UI/ShowLeaderboard.cs:13)
I/Unity (32711): UnityEngine.SocialPlatforms.Local:UnityEngine.SocialPlatforms.ISocialPlatform.Authenticate(ILocalUser, Action`1)
I/Unity (32711): UnityEngine.SocialPlatforms.Impl.LocalUser:Authenticate(Action`1)
I/Unity (32711): ShowLeaderboard:OnShowLeaderboard() (at /Users/MaskedPixel/Development/Unity/weeklys/Week05/Assets/GreatWhiteFlight/Scripts/Util/UI/ShowLeaderboard.cs:11)
I/Unity (32711): UnityEngine.Events.InvokableCall:Invoke(Object[])
I/Unity (32711): UnityEngine.Events.InvokableCallList:Invoke(Object[])
I/Unity (32711): UnityEngine.Events.UnityEventBase:Invoke(Object[])
I/Unity (32711): UnityEngine.Events.UnityEvent:Invoke()
I/Unity (32711): UnityEngine.UI.Button:Press() (at /Users/builduser/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Button.cs:35)
I/Unity (32711): UnityEngine.UI.Button:OnPointerClick(PointerEventData) (at /Users/builduser/buildslave/unity/
Answer by Positive7 · Aug 01, 2015 at 06:55 PM
You need to activate the Google Play Platform with
PlayGamesPlatform.Activate(); //Call it in Start() or Awake()
And I had actually tried that, but was looking in the wrong namespace for that class. For anyone who happens upon this question, PlayGamesPlatform is in the GooglePlayGames namespace.
Your answer
Follow this Question
Related Questions
How to include obb extension files in Google play developer console 0 Answers
Unity 5.6.0f1 Does not support Nougat 7+ ? Google Console lists Nougat 7+ as unsupported on my apks. 0 Answers
Daydream publishing errors 1 Answer
Unity Google Play Service Plugin Social.localUser.Authenticate(…) App Crash 1 Answer
Problem with Google Play Game Services: Invalid Classname 1 Answer