Exit game punisher
This punisher closes the game. It is the hardest built-in reaction. Use it only at a high threat score, so a false alarm does not kick an honest player.
This punisher is part of the Free and the Pro version.
Walkthrough: Punishing cheaters.
Add it
The predefined Anti-Cheat-Monitor prefab has no punisher. To use this one:
- Make your own monitor prefab. Copy the predefined one.
- Drag the Exit Game Punisher prefab onto the monitor in your prefab so it becomes a child.
- Assign your prefab to the Anti-Cheat Monitor field in Edit > Project Settings > GuardingPearSoftware > AntiCheat.

The punisher prefabs in Assets/GUPS/AntiCheat/Resources/Prefabs/Punishers.
The component is ExitGamePunisher (namespace GUPS.AntiCheat.Punisher). You can also add it by hand to a child of the monitor.

Add the Exit Game punisher component.
Settings
- Is Active (
isActive, bool, default on): Turns the punisher on or off. - Threat Rating (
threatRating, uint, default 850): The limit. The punisher runs when the threat score of the Anti-Cheat Monitor reaches this number.
Good to know
- It runs once per session.
- The game closes at once. The player gets no message. If you want to show one first, write your own punisher or react to the detector yourself.
- It does nothing in the Unity Editor, because the Editor does not close in Play mode.
- Some platforms do not let an app close itself, for example iOS and WebGL. Test it on your target platform.
Back to the Punisher overview.