Adding achievements in unity
This tutorial assumes you have completed one of the following tutorials:
And that you know where to find the achievement ID, of the achievement you want to add.
The adding achievement details
First open the CP Social configurator (window -> CP Social -> Open configurator).
Depening on if you choose to add a single unlock or an incremental achievement, select the appropriate + button of the two achievement lists.
An empty achievement will be added with an Edit button next to it. Click on that edit button.
A new window will pop up where you can enter the details of your achievement. Enter these details as you want, these details will be available later in game.
Achievement details
- Unlocked sprite - The sprite that should be shown when the achievement is unlocked (useful for an in-game achievement menu)
- Hidden sprite - The sprite that should be shown when the achievement is still locked (useful for an in-game achievement menu)
- Display name - The name that should be displayed for this achievement (useful for an in-game achievement menu)
- Description - Short description of the achievement (useful for an in-game achievement menu)
- Universal name - Name used for referencing to this achievement, this will be the same on all platforms
- Android Id - Id of the achievement as show in the achievement on Google Game Services
- iOS Id - Id of the achievement set by you on AppStoreConnect
- Steam Id - Id of the achievement set by you on the Steam console
After adding the details, you can close the details editing window.
Incremental achievement
- Min Value - Is usually 0, but if you set the min value in the steam console higher than 0, set this to this value. (Only the steam platform will use this, all other platforms start at 0)
- Max value - Max value of the achievement, it this value is hit when incrementing the achievement will be unlocked.
- Steam Progressive achievement stat - ID of the stat used for keeping track of the users progress in the steam console.
After adding the details, you can close the details editing window, the achievement will be automatically saved.