For AI agents: the complete documentation index is available at /masked-value/llms.txt, the full documentation bundle is available at /masked-value/llms-full.txt, and this page is available as Markdown at /masked-value/guide/inspector.md.

Inspector

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.

ModeWhat you can do
EditSet initial values, save scenes/prefabs, and use Undo.
PlayView and edit current values. Changes are discarded when Play mode ends.

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.