Using AntiCheat is really straightforward. AntiCheat Free gives you the opportunity to protect your fields / variables and protected player prefs.
Most of your data, for example, positions or health, is stored in the runtime memory. This memory is easily accessible by cheat tools or data sniffers. To prevent unwanted modification of the data in the memory, you have to encrypt it. To do so, you can use AntiCheats protected fields, to protect your application runtime data against cheater.
The usage is simple. Just use the protected types instead of the regular ones and read / write / calculate as you are used to:
// For example integer
ProtectedInt16 a = new ProtectedInt16(1234);
a += 1;
ProtectedInt32 b = new ProtectedInt32(5678);
b += 2;
ProtectedInt64 c = new ProtectedInt64(91011);
c += 3;
Unitys PlayerPrefs are useful to store user settings and user data. Unfortunately, these are not protected or encrypted and can be easily modified. To prevent this, you can use the AntiCheat Protected PlayerPrefs.
Also here, the usage is simple. The protected PlayerPrefs allow you to use 2 different methods:
-> ProtectedPlayerPrefs: Replaces the default functions of the Unity PlayerPrefs and adds some new ones. The protected prefs will be stored at the know default location.
-> ProtectedFileBasedPlayerPrefs: Is a custom implementation of the Unity PlayerPrefs allowing to store the player prefs protected at a custom file path. To assign a custom file path, set ProtectedFileBasedPlayerPrefs.FilePath. Now use ProtectedFileBasedPlayerPrefs like you would use the default Unity PlayerPrefs.