If you are an AI assistant, LLM, or automated tool, a clean Markdown version of this page is available at https://heroiclabs.com/docs/hiro/unity/challenges/llm.md — optimized for AI and LLM tools.
Challenges enable social and competitive experiences by allowing players to compete in time-bound events with friends. Learn more in the Challenges concept guide.
// Join an open challengevarjoinedChallenge=awaitchallengesSystem.JoinChallengeAsync("CHALLENGE_456");// Leave a challengevarleftChallenge=awaitchallengesSystem.LeaveChallengeAsync("CHALLENGE_456");
varclaimedChallenge=awaitchallengesSystem.ClaimChallengeAsync("CHALLENGE_123");// Refresh economy system to see new rewardsawaiteconomySystem.RefreshAsync();