Hide In Play Mode Attribute

HideInPlayMode is used on any property, and hides the property when not in editor mode. Use this when you only want a property to only be visible the editor.

public int AlwaysVisible; [Title("Hidden in play mode")] [HideInPlayMode] public int A; [HideInPlayMode] public int B;