Universal - Memory Tampering - Detector
Score, health, and position live in memory. A memory editor is a tool that reads and changes the values of a running game. Protected types notice such a change and tell this detector.
This detector is part of the Free and the Pro version.
Walkthrough: Memory protection.
What it does
PrimitiveCheatingDetector (namespace GUPS.AntiCheat.Detector) collects the reports of your protected values. It has no monitor. The protected types tell it themselves:
- Protected primitives:
ProtectedInt32,ProtectedFloat,ProtectedString,ProtectedVector3, and the other single values. - Data chain and block chain (Pro): They report when a changed entry is found.
Protected collections (list, queue, stack) do not report on their own. You call CheckIntegrity yourself. All types are on the Protected page.
Do you need to add it?
No, if you use the predefined Anti-Cheat-Monitor prefab. It already includes this detector.
If you use your own monitor prefab, drag the Primitive Cheating Detector prefab onto the monitor so it becomes a child.

The detector prefabs in Assets/GUPS/AntiCheat/Resources/Prefabs/Detectors.
Settings

The PrimitiveCheatingDetector settings.
- Is Active (
isActive, bool, default true): Turns the detector on or off. - Threat Rating (
threatRating, default 500): How much one find adds to the threat score. It is high because a false alarm is very unlikely and a changed value matters a lot. - On Cheating Detection Event (
OnCheatingDetectionEvent): Methods to call on every find.
The chance of a false alarm is fixed at 0.01. You cannot change it.
What it reports
On a find, the detector sends a CheatingDetectionStatus:
public struct CheatingDetectionStatus : ICheatingDetectionStatus
{
// The kind of cheat. Here: ECheatType.Memory.
public ECheatType CheatType { get; }
// How likely this find is a false alarm, from 0 to 1.
public float PossibilityOfFalsePositive { get; }
// How much this find adds to the threat score.
public uint ThreatRating { get; }
}
Good to know
- The flag stays.
PossibleCheatingDetectedstays true after the first find. - Every changed value is a find. One find with the default rating is enough to reach all built-in punishers at the default sensitivity.
- No cost while nothing happens. The detector does not check your values on a timer. It only reacts when a protected value reports a change.
Platforms and requirements
Every platform. There are no requirements, and no monitor is needed.
React to a find
Every find is added to the threat score of the Anti-Cheat Monitor. The predefined monitor prefab has no punisher. So nothing more happens to the player until you react yourself or add a punisher.
In the Inspector. Add a method to On Cheating Detection Event. It runs on every find.

Inspector callbacks on a detector.
In code. Ask the detector:
var detector = AntiCheatMonitor.Instance.GetDetector<PrimitiveCheatingDetector>();
if (detector != null && detector.PossibleCheatingDetected)
{
// A protected value was changed at least once.
}
Or listen, so your code runs at the moment of the find. Subscribe returns an IDisposable. Dispose it when you want to stop.
using System;
using GUPS.AntiCheat;
using GUPS.AntiCheat.Core.Detector;
using GUPS.AntiCheat.Detector;
using UnityEngine;
public class PrimitiveDetectionLogger : MonoBehaviour, IObserver<IDetectorStatus>
{
private void Start()
{
var detector = AntiCheatMonitor.Instance.GetDetector<PrimitiveCheatingDetector>();
detector.Subscribe(this);
}
public void OnNext(IDetectorStatus status)
{
Debug.LogWarning($"Memory tampering found. Threat: {status.ThreatRating}");
}
public void OnError(Exception error) { }
public void OnCompleted() { }
}
Back to the Detector overview.