unity3d - ShowAchievementsUI(); don't want to appear on Android -


I am using the official for unity, and I am following the installation at this point. Authentication works like a magic, but when I see ShowHivumentsUI (); I want to, no UI, no error, no accident.

I've been googling around for a while, it seems that other people have solved this problem, but there is no solution in sight.

My code is this moment:

  using GooglePlayGames; Using UnityEngine.SocialPlatforms; Zero Start () {PlayGamesPlatform.DebugLogEnabled = true; PlayGamesPlatform.Activate (); LoginSocialGamecenter (); } Public Fixed Zero Login SocialGamecenter () {if (Social.localUser.authenticated) {Social.ShowAchievementsUI (); Debug.Log ("Pancake!"); Return; }}   

and "Pancakes!" It comes out completely before the authentication UI also appears on the installation well, it fails in all of my devices, but the debug message is fully visible on Android.

According to the documentation, it should work in the described form:

Showing achievements UI

To show the built-in UI for all leaderboards Click Social. Showchimes. UI.

  using GooglePlayGames; Using UnityEngine.SocialPlatforms; ... // Show's achievements UI Social ShowHivetsUI (); This will show a standard UI suitable for the format and experience of platform (android or ios).     

found this right; it requires five achievements or the window is not visible Will give.

This will not report any errors, just return false.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -