
Easily add GTA-style cheat codes to your Unity game! A powerful, modular system using Scriptable Objects. Spawn any prefab or trigger custom events.Documentation | WebGl DemoUnlock the classic fun and power of GTA-style cheat codes in your game with the Modular Cheat Code System!Stop wasting time hard-coding cheats and start designing them in seconds with this powerful, flexible, and incredibly intuitive tool.Built entirely around a professional Scriptable Object architecture, this system allows you to create, manage, and scale an unlimited number of cheat codes without ever touching the core logic. Whether you want to spawn vehicles on command, instantly grant players full health, or trigger complex game-wide events, this asset is the ultimate, production-ready solution.Core FeaturesTruly Modular by Design: Define every cheat as a separate ScriptableObject. This keeps your project impeccably organized and allows you to add, remove, or tweak cheats simply by creating or editing an asset.Powerful & Flexible Action System: Unleash your creativity with multiple action types. You can instantly spawn any prefab (vehicles, weapons, characters), trigger decoupled game-wide events to interact with your existing scripts (like PlayerStats or GameManager), or even do both at the same time with a single code!Smart & Safe Spawning: The included SmartSpawnCalculator is no simple tool. It uses a SphereCast to intelligently find a collision-free position, ensuring your spawned objects never get stuck inside a wall or another obstacle.Intuitive Custom Editor (v2.0 Feature!): A streamlined inspector that dynamically shows only the relevant fields. It guides you with helpful info boxes and warns you in real-time if you forget to assign a prefab or an event ID, making configuration fast and error-free.Rock-Solid Stability (v2.0 Feature!): This system is built to be robust. It automatically validates all cheat configurations at runtime and on game start, logging helpful warnings in the console instead of causing game-breaking errors.Event-Driven UI Feedback: Includes a simple NotificationController to demonstrate how easily you can provide on-screen feedback to the player when a cheat is successfully activated.Integrating with your game is incredibly simple!Connecting cheats to your game's logic (like giving health or armor) is designed to be straightforward. Our decoupled event system means you only need to copy a small, clean code snippet into your scripts to listen for cheat activations. Full examples are included in the documentation!What's New in Version 2.0?Version 2.0 is a massive upgrade focused on professional workflow and stability. It introduces a brand-new Custom Editor for an intuitive setup, a powerful "Both" Action Type, and Runtime Validation to make the system completely crash-proof.How It Works (The 30-Second Setup):Create: Right-click in your project -> Create -> Modular Cheat System -> Cheat Definition.Configure: In the new inspector, type your cheat code (e.g., "GIVECAR"), select an action, and assign your prefab or event ID.Assign: Drag your new Cheat Definition asset into the CheatManager's list.Activate: Simply type the code on your keyboard during gameplay. The associated prefab will spawn or the event will trigger instantly!Your new cheat is now live in your game. It's that fast.SupportIf you have any questions or need assistance, please contact me via email. Your feedback and reviews are greatly appreciated and help support future updates!Full C# Source Code Included: The entire codebase is clean, professionally written, and extensively commented with XML documentation to meet Asset Store standards.Scriptable Object Architecture: The core of the system is built around Scriptable Objects for maximum modularity, organization, and ease of use.Advanced Custom Editor: Utilizes a custom editor script to provide a dynamic, context-aware inspector that improves workflow and prevents configuration errors.Decoupled Event System: Employs a static C# Action event manager (CheatEventManager) to allow any script to easily subscribe to cheat activations without requiring direct component references.Physics-Based Spawning: Leverages Physics.SphereCast for intelligent, collision-aware object placement in 3D space.No External Dependencies: The system is completely self-contained and requires no other third-party packages or assets to function.Supported Unity Versions: Fully tested and supported on Unity 2020.3 LTS and all newer versions.