Version 3.3.1.2

Odin has a dedicated attribute overview with examples

ChildGameObjectsOnlyAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[Conditional("UNITY_EDITOR")]
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.
Inheritance
  • System.Object
  • System.Attribute
  • ChildGameObjectsOnlyAttribute
See Also
  • System.Attribute

Constructors

ChildGameObjectsOnlyAttribute()
public ChildGameObjectsOnlyAttribute()

Fields

IncludeInactive
public bool IncludeInactive
IncludeSelf
public bool IncludeSelf