01 - Getting started with Anti-Cheat
Goal: You will learn how to add Anti-Cheat to your project and get the Anti-Cheat Monitor running in your game. This is the foundation every other guide builds on.
The problem
Protecting a value is only half the job. Something has to collect the signs of cheating and react to them. Without that, a cheat is noticed and nothing happens.
The solution
Anti-Cheat works in four steps: protect, watch, detect, and react. The Anti-Cheat Monitor sits in the middle. It is one object that collects what the detectors find and runs the reactions. Anti-Cheat adds it to your game for you.
Step 1: Import Anti-Cheat
Import Anti-Cheat from the Unity Asset Store, or from the GuardingPearSoftware store. After the import, all files are under Assets/GUPS/AntiCheat.
The prepared prefabs are in Assets/GUPS/AntiCheat/Resources/Prefabs.

Image 1: The Anti-Cheat-Monitor prefab, next to the folders with the prepared detectors and punishers.
Step 2: Press Play
You do not have to put the monitor into a scene. When the game starts, Anti-Cheat looks for a monitor. If there is none, it creates one from the predefined Anti-Cheat-Monitor prefab.
Press Play and look at the Hierarchy. Under DontDestroyOnLoad you find an object named (PersistentSingleton) AntiCheatMonitor. That is the monitor.

Image 2: The Anti-Cheat Monitor in the Hierarchy while the game runs.
It is a persistent singleton. That means only one exists, and it stays loaded when you change scenes. It keeps protecting your game in every scene.
Step 3: Understand what is on the monitor
Select the monitor in the Hierarchy. The Inspector shows what was added.

Image 3: The Anti-Cheat Monitor lists what is watching, what can detect a cheat, and what can react.
- Monitors: They watch the game or the device and only report what they measure.
- Detectors: They decide if a measurement looks like cheating, then raise the threat score.
- Threat score: Each detector find adds to one score. A find that is more likely a mistake adds less. A higher score means Anti-Cheat is more sure.
- Punishers: They run when the score reaches their limit. Built-in ones can close the game, lower the frame rate, or flip the camera. Each has its own limit.
- Your own reaction: You can also react yourself, with a warning, a kick, or an account flag. You hook that up in the Inspector or in code.
In Pro, the predefined prefab already includes the usual detectors, so it is ready to use. It has no punisher. Nothing happens to the player until you add one or react yourself.
Step 4: Use your own monitor prefab (optional)
Make your own prefab when you want other detectors, other detector settings, or punishers.
- Copy the predefined Anti-Cheat-Monitor prefab into your own folder.
- Add or remove detector and punisher prefabs as children.
- Open Edit > Project Settings > GuardingPearSoftware > AntiCheat.
- Assign your prefab to the Anti-Cheat Monitor field at the top.
If that field is empty, or the prefab in it has no AntiCheatMonitor component, Anti-Cheat falls back to the predefined prefab.
Step 5: Know when Anti-Cheat checks for the monitor
- When the game starts. A missing monitor is created.
- When a scene starts. In a built game, every scene checks again. A missing monitor is added again.
A monitor that was there at the start and is gone later was most likely removed by a cheat tool. In a built game, Anti-Cheat adds it again and reports this as a cheat, once.
Note
Do not destroy the Anti-Cheat Monitor in your own code. In a built game that counts as a removed monitor.
The result
Your game now has a running Anti-Cheat Monitor. It collects what the detectors find and keeps one threat score. You have not protected a value yet. The next guides do that.
Settings reference: How to start.
Next steps
- Protecting memory against Cheat Engine is the first scenario guide.
- Android, iOS, and desktop checks have their own guides. Pick one from the Guides overview.
- Reacting to cheating and Punishing cheaters show what to do when a cheat is found.
Next guide: 02 - Protecting memory against Cheat Engine.
Back to the Guides overview.