Version 3.0.1.0

Odin has a dedicated attribute overview with examples

HideInPrefabsAttribute 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 HideInPrefabsAttribute : Attribute, _Attribute
Hides a property if it is drawn from a prefab instance or a prefab asset.
Inheritance
  • System.Object
  • System.Attribute
  • HideInPrefabsAttribute

Constructors

HideInPrefabsAttribute()
public HideInPrefabsAttribute()