Odin has a dedicated attribute overview with examples

DisableInNonPrefabsAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field)]
public class DisableInNonPrefabsAttribute : Attribute, _Attribute
Disables a property if it is drawn from a non-prefab asset or instance.
  • System.Object
  • System.Attribute
  • DisableInNonPrefabsAttribute


public DisableInNonPrefabsAttribute()

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.