Version 2.1.0.0

AllowGUIEnabledForReadonlyAttribute class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
[AttributeUsage(AttributeTargets.Class)]
public class AllowGUIEnabledForReadonlyAttribute : Attribute, _Attribute
Some drawers don't want to have its GUI disabled, even if the property is read-only or a ReadOnly attribute is defined on the property. Use this attribute on any drawer to force GUI being enabled in these cases.
Inheritance
  • System.Object
  • System.Attribute
  • AllowGUIEnabledForReadonlyAttribute
Example
[AllowGUIEnabledForReadonly]
public sealed class SomeDrawerDrawer<T> : OdinValueDrawer<T> where T : class
{
}

Constructors

AllowGUIEnabledForReadonlyAttribute()
public AllowGUIEnabledForReadonlyAttribute()