[英]Is there a way to check to see which achievements have been unlocked in unity?
So i'm updating my android and ios application using the unity game engine. 因此,我正在使用统一游戏引擎更新我的android和ios应用程序。 I want to add unlockables based on which achievements the user has unlocked.
我想基于用户已解锁的成就添加可解锁的内容。 I have about 20 or so achievements.
我大约有20项成就。 I can't find anywhere a method to check to see if a particular achievement has been unlocked or not.
我在任何地方都找不到检查特定成就是否已解锁的方法。 Im using Gamecenter for ios and Google Play Games for android.
我在iOS上使用Gamecenter,在Android上使用Google Play游戏。
The Social class should provide what you need: 社会阶层应该提供您所需要的:
https://docs.unity3d.com/ScriptReference/Social.html https://docs.unity3d.com/ScriptReference/Social.html
most particularly https://docs.unity3d.com/ScriptReference/Social.LoadAchievements.html 尤其是https://docs.unity3d.com/ScriptReference/Social.LoadAchievements.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.