Show In Inspector Attribute

ShowInInspector is used on any member, and shows the value in the inspector. Keep in mind that the ShowInInspector attribute will not serialize anything; meaning that any changes you make will not be saved with just the ShowInInspector attribute. As a rule of thumb: Any field or property that isn't appearing in the inspector without the ShowInInspector attribute are not serialized. Use the Serialization Debugger to get a better overview of what is and what isn't serialized in your classes.

[ShowInInspector] private int myPrivateInt; [ShowInInspector] public int MyPropertyInt { get; set; } [ShowInInspector] public int ReadOnlyProperty { get { return this.myPrivateInt; } } [ShowInInspector] public static bool StaticProperty { get; set; }