Version 2.1.0.0

Odin has a dedicated attribute overview with examples

HideInPrefabsAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[DontApplyToListElements]
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field)]
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()

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.