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()

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.