Version 3.3.1.2

Odin has a dedicated attribute overview with examples

DisableInAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[DontApplyToListElements]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All)]
[Conditional("UNITY_EDITOR")]
public class DisableInAttribute : Attribute, _Attribute
Disables a member based on which type of a prefab and instance it is in.
Inheritance
  • System.Object
  • System.Attribute
  • DisableInAttribute

Constructors

DisableInAttribute(PrefabKind)
public DisableInAttribute(PrefabKind prefabKind)
Parameters
PrefabKind prefabKind

Fields

PrefabKind
public PrefabKind PrefabKind