# Masked Values > Mask Unity gameplay values in memory and detect ordinary memory tampering with GuardedValue. ## Others - [Inspector](/masked-value/guide/inspector.md): In Unity 6, public fields work directly. Private fields use Unity's normal [SerializeField]. No companion initial-value field, linking attribute, or Awake is needed. For runtime-only component fields, use [System.NonSerialized]. For custom Inspector value structs, add [System.Serializable] and follow Unity serialization rules. Unity 2022.3 uses the optional [MaskedValueField] bridge instead of automatic fields. Unity 6 initial values remain plaintext configuration in memory and assets. Loading or cloning restores those defaults, not current gameplay state. [NonSerialized] is a serialization setting, not memory protection. See the package's detailed Inspector guide for the Unity 2022.3 example, assembly references, codec-backed fields, and additional serialization details. Browse the Inspector Fields sample for a working Unity 6 example. - [Performance and limits](/masked-value/guide/performance.md): Unmanaged value reads, writes, and remasking allocate no managed memory after initialization. String reads and assignments and custom codecs can allocate; larger structs also cost more memory and processing. Synchronize concurrent access yourself. GuardedValue adds integrity checks to the masked value path. Choose it for unmanaged values that need those checks; use MaskedValue when masking without integrity checks is sufficient. RefreshMask() is explicit and is not required on each read. Masking is not encryption or complete anti-cheat protection. Code patches, valid snapshot replay, and legitimate API writes remain possible. Unity 6 initial values remain plaintext configuration in memory and assets; loading or cloning restores defaults, not current gameplay values. [NonSerialized] does not provide memory protection. These are package-level characteristics, not a guarantee of zero overhead on every target. Measure the application's access patterns and target devices. For benchmark methodology and implementation details, see the package performance notes. - [Samples and AI coding tools](/masked-value/guide/samples-and-ai.md) - [Tampering](/masked-value/guide/tampering.md): GuardedValue refuses to return or overwrite a value when its integrity check fails. .Value and RefreshMask() throw InvalidOperationException; TryGetValue, TrySetValue, CheckIntegrity, and TryRefreshMask return false. Stop the current game action on failure and do not use failed output as valid state. - [Types and operations](/masked-value/guide/types-and-operations.md)