Odin has a dedicated attribute overview with examples

ChildGameObjectsOnlyAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
public class ChildGameObjectsOnlyAttribute : Attribute, _Attribute
The ChildGameObjectsOnly attribute can be used on Components and GameObject fields and will prepend a small button next to the object-field that will search through all child gameobjects for assignable objects and present them in a dropdown for the user to choose from.
  • System.Object
  • System.Attribute
  • ChildGameObjectsOnlyAttribute
See Also
  • System.Attribute


public ChildGameObjectsOnlyAttribute()


public bool IncludeSelf

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.