HideInEditorModeAttribute

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.

namespace Sirenix.OdinInspector
{
[AttributeUsageAttribute((AttributeTargets)448)]
[DontApplyToListElementsAttribute]
public class HideInEditorModeAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 1.0.5.0

See Also

Example

The following example shows how HideInEditorMode is used to hide a property when in the editor.

public class MyComponent : MonoBehaviour
{
	[HideInEditorMode]
	public int MyInt;
}