Version 3.3.1.2

Odin has a dedicated attribute overview with examples

ShowInAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[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 ShowInAttribute : Attribute, _Attribute
Shows a member based on which type of a prefab and instance it is in.
Inheritance
  • System.Object
  • System.Attribute
  • ShowInAttribute

Constructors

ShowInAttribute(PrefabKind)
public ShowInAttribute(PrefabKind prefabKind)
Parameters
PrefabKind prefabKind

Fields

PrefabKind
public PrefabKind PrefabKind