UGS Triggers allow you to automatically run Cloud Code in response to selected events in other services. For example:
- When a Leaderboard resets, run Cloud Code to automatically reward the top 5 players with items in Economy or Cloud Save
- When a Player Signs In, run Cloud Code to validate and cycle their Daily and Weekly Quests
- When a Leaderboard score is posted, run Cloud Code to validate it, modify it and reward the player in Cloud Save
- When the Cloud Save Game Data key “HighestLevel” is updated, run Cloud Code to automatically broadcast a message to all connected players announcing the player’s achievement
For any event that occurs in a service, you can define an automatic server authoritative action/response through Triggers and Cloud Code.
Read more about UGS Triggers here
What’s new with Triggers?
Previously, Triggers could only be configured through the CLI and API. We’ve now added the ability to view and create your Triggers on the Unity Dashboard.
Check our documentation to learn more about this update.