1. Home
  2. Docs
  3. Anti Cheat
  4. How to start
  5. Free

Free

Step 1:

After importing the Anti Cheat packet, open ‘Assets/OPS/AntiCheat/Prefabs’. Here you find the AntiCheat prefab. Place it in the first scene. (The scene with the number 0, defined in your build settings.) The AntiCheat prefab activates the hacking detectors.

Step 2:

To attach to the detectors activated in step 1, open your programming environment. Create an Detector class ( for example have a look at the DetectorsDemo ). The best is to create an MonoBehaviour and add it to some GameObject in your first scene too, while attaching a DoNotDestroyBehaviour too, so the GameObject wont be destroyed when you switch a scene.

Step 3:

The next step you wanna do is protect your fields. Replace your normal used fields through protected one and use them like you used your fields before.

Possible Operations with Protected Field Types:

Step 4:

The next step is to protect your PlayerPrefs. Just like in Step 3, add the Protected and so use ProtectedPlayerPrefs instead of PlayerPrefs. Now your PlayerPrefs are protected against user manipulation.