Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Anonymous's avatar
Anonymous
6 years ago

How to set up Client Achievements in Unity?

I have a box collider that is a trigger with a Script that runs 
Platform.Achievements.Unlock("HELLO_WORLD")
 because my Simple achievement name is "HELLO_WORLD". From what I understand from the documentation, this should work, as this achievement is marked as a Client Authoritative write policy achievement, but nothing happens when I make contact with my box collider. Is there an extra step I need to take?

1 Reply

  • rh_galaxy's avatar
    rh_galaxy
    Heroic Explorer
    The only thing I do before that Unlock call is
    Core.AsyncInitialize("your_app_id");
    Entitlements.IsUserEntitledToApplication().OnComplete(EntitlementCallback);
    Users.GetLoggedInUser().OnComplete(LoggedInUserCallback);
    and wait for those callbacks to complete.