Hide In Editor Mode Attribute

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

public int AlwaysVisible;

[Title("Hidden in editor mode")]
[HideInEditorMode]
public int C;

[HideInEditorMode]
public int D;