Version 3.2.1.0

OptionalAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
[Conditional("UNITY_EDITOR")]
public class OptionalAttribute : Attribute, _Attribute
Overrides the 'Reference Required by Default' rule to allow for null values. Has no effect if the rule is disabled. This attribute does not do anything unless you have Odin Validator and the 'Reference Required by Default' rule is enabled.
Inheritance
  • System.Object
  • System.Attribute
  • OptionalAttribute

Constructors

OptionalAttribute()
public OptionalAttribute()