Version 3.3.0.1

Odin has a dedicated attribute overview with examples

EnableGUIAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All)]
[Conditional("UNITY_EDITOR")]
public class EnableGUIAttribute : Attribute, _Attribute

An attribute that enables GUI.

Inheritance
  • System.Object
  • System.Attribute
  • EnableGUIAttribute
Example
public class InlineEditorExamples : MonoBehaviour
{
    [EnableGUI]
    public string SomeReadonlyProperty { get { return "My GUI is usually disabled." } }
}

Constructors

EnableGUIAttribute()
public EnableGUIAttribute()