Masked Values
Mask gameplay values in memory and detect ordinary memory tampering with GuardedValue<T>. The package supports numbers, unmanaged structs, strings, and data with custom codecs. It supports Unity 2022.3 and later, with automatic Inspector support in Unity 6, and has no external package dependencies.
Masking makes simple plaintext searches harder; it is not encryption or complete anti-cheat protection. Keep authoritative online game state on the server.
Installation
Git URL
In Window > Package Manager, select + > Add package from git URL and enter:
OpenUPM
With the OpenUPM CLI, run this from your Unity project folder:
To install through a scoped registry instead, merge these entries into Packages/manifest.json, preserving any existing registries and dependencies:
Quick start
Add this component to a GameObject. In Unity 6, its fields also appear in the Inspector.
Choose a value type based on whether integrity checks and custom codecs are needed. See the Inspector guide for Unity field behavior and tampering guide for handling failed integrity checks.
Compatibility and license
The package is published as com.achieve.masked-values and licensed under MIT. For installation and source, see the GitHub repository. A Korean README is also available.