• Hello
Search Results for

    Show / Hide Table of Contents

    Monitor

    A monitor watches one thing and reports what it sees, for example how fast the game clock runs. It does not decide that the player is cheating. A detector does that.

    Do not mix it up with the Anti-Cheat Monitor. That is the main object in your scene. It holds all detectors and their monitors.

    Monitors are part of the Pro version. The Free version has none.

    The Anti-Cheat Monitor lists the monitors on it.

    Do you need to add a monitor?

    Most of the time, no. The ready-made detector prefabs already include the monitors they need. Add the detector prefab and you are done.

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

    Read on if you want to:

    • know what a detector looks at, or
    • read the raw values yourself, without a detector.

    Where a monitor goes

    Put a monitor on the same GameObject as its detector. The detector looks for its monitor there. If the monitor sits on another object, the detector does not find it.

    A monitor you only read yourself can go on any child of the Anti-Cheat Monitor.

    Read a monitor in code

    You can listen to a monitor yourself. Subscribe returns an IDisposable. Dispose it when you want to stop.

    public class GameTimeLogger : MonoBehaviour, IObserver<IWatchedSubject>
    {
        private void Start()
        {
            var monitor = GetComponentInChildren<GameTimeMonitor>();
            monitor.Subscribe(this);
        }
    
        public void OnNext(IWatchedSubject subject)
        {
            if (subject is GameTimeStatus status)
            {
                Debug.Log($"Game speed: {status.SpeedFactor:0.00}x");
            }
        }
    
        public void OnError(Exception error) { }
        public void OnCompleted() { }
    }
    

    Each monitor page shows the status it reports.

    Universal

    These run on every platform.

    Monitor What it watches Feeds
    GameTimeMonitor Whether game time is stopped, slowed, or sped up Game time detector
    DeviceTimeContinuousMonitor Whether the device clock jumped while the game is running Device time detector
    DeviceTimeEventMonitor Whether the device clock disagrees with the time from the internet, or with the last time the game saved Device time detector
    InputMonitor How fast each button is pressed, per device Input detector
    Note

    The InputMonitor needs the Unity Input System package.

    Android

    These run on Android.

    Monitor What it watches Feeds
    AndroidPackageSourceMonitor Which store installed the app Install source detector
    AndroidPackageHashMonitor The hash of the whole app file. A hash is a short code that changes when the file changes Package tampering detector
    AndroidPackageFingerprintMonitor The certificate the app was signed with. It shows who built the app Package tampering detector
    AndroidPackageLibraryMonitor Code libraries packed inside the app Package tampering detector
    AndroidInstalledApplicationMonitor Other apps installed on the device Device detector

    iOS

    These run on iOS.

    Monitor What it watches Feeds
    IOSPackageSourceMonitor Which channel installed the app: App Store, TestFlight, alternative marketplace, web, Xcode, Simulator Install source detector

    Desktop

    These run on Windows, macOS, and Linux standalone players. Unity 6 and newer only.

    Monitor What it watches Feeds
    DesktopPackageSourceMonitor Which store the build was installed from: Steam, Epic, GOG, or the Microsoft Store Install source detector

    Next

    A monitor only reports. To decide if a report is cheating, go to the Detector overview.


    Back to the overview.

    In This Article
    Back to top GuardingPearSoftware documentation