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: 1.0.6.1

Example

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