Troubleshooting Guide
Common issues and their solutions when working with ACHIEVE PRO.
Table of Contents
- 🛑 UI Not Rendering
- 💾 Progress Not Saving Between Sessions
- 🎧 No Sound Playing on Unlock
- ⚠️ Compilation Errors After Import
- 📈 Stats Not Tracking
🛑 UI Not Rendering
Issue: Achievement popups are not showing up on screen when an achievement is unlocked.
Solutions:
- Missing Canvas Rig: Ensure you have the
AchievementCanvasprefab in your scene. You can easily add it viaTools > Achievement System Pro > Scene Wizard > Setup UI Rig. - Event System Missing: Check if your scene has an
EventSystemGameObject. - Z-Ordering / Sorting Layer: The canvas might be rendering behind other UI elements. Increase the
Sort Orderon theCanvascomponent of yourAchievementCanvas.
💾 Progress Not Saving Between Sessions
Issue: Achievements unlock during play, but reset when restarting the game.
Solutions:
- Save Manager Initialization: Ensure
AchievementManager.Instance.Save()is being called, or enable Auto-Save on Unlock in the Studio Hub settings. - Corrupted Save File: Navigate to your persistent data path (usually
%APPDATA%\LocalLow\YourCompany\YourGameon Windows) and deleteachievements_data.datto clear potentially corrupted data. - AES Key Mismatch: If you recently regenerated your AES-256 encryption keys, old save files will fail to load and will be discarded.
🎧 No Sound Playing on Unlock
Issue: The visual popup appears, but no sound plays.
Solutions:
- AudioListener Missing: Ensure there is an
AudioListenercomponent on your Main Camera. - Audio Source on Canvas: The
AchievementPopupControllerrequires anAudioSourcecomponent to play SFX. - Muted via Code: Check if you’ve accidentally called
AchievementManager.Instance.SetAudioMuted(true).
⚠️ Compilation Errors After Import
Issue: Missing reference exceptions or namespace errors.
Solutions:
- Assembly Definitions: If your project uses
.asmdeffiles, you must add a reference toAchievementSystemPro.Runtimein your project’s assembly definition file. - Unity Version: Ensure you are running Unity 2021.3 LTS or newer.
📈 Stats Not Tracking
Issue: StatManager.AddProgress("enemies_killed", 1) is not triggering the associated achievement.
Solutions:
- Stat ID Mismatch: Double check that the Stat ID in your script matches EXACTLY with the ID in the Studio Hub.
- Prerequisites: Check if the achievement has unmet prerequisites blocking its unlock.