HideInPlayModeAttribute

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.

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

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 1.0.4.1

See Also

Example

The following example shows how HideInPlayMode is used to hide a property when in play mode.

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