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 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: 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. found this right; it requires five achievements or the window is not visible Will give. This will not report any errors, just return false. ShowHivumentsUI (); I want to, no UI, no error, no accident.
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; }}
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).
Comments
Post a Comment