AllowGUIEnabledForReadonlyAttribute

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.

namespace Sirenix.OdinInspector.Editor
{
[AttributeUsageAttribute((AttributeTargets)4)]
public class AllowGUIEnabledForReadonlyAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Example


 [AllowGUIEnabledForReadonly]
 public sealed class SomeDrawerDrawer<T> : OdinValueDrawer<T> where T : class
 {
 }