Odin has a dedicated attribute overview with examples

InlineEditorAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[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)]
public class InlineEditorAttribute : Attribute, _Attribute

InlineAttribute is used on any property or field with a type that inherits from UnityEngine.Object. This includes components and assets etc.

  • System.Object
  • System.Attribute
  • InlineEditorAttribute
public class InlineEditorExamples : MonoBehaviour
    public Vector3 DisabledInInlineEditors;

    public Vector3 HiddenInInlineEditors;

    public Transform InlineComponent;

    public Material FullInlineEditor;

    public Material InlineMaterial;

    public Material[] InlineMaterialList;

    public GameObject InlineObjectPreview;

    public Mesh InlineMeshPreview;


InlineEditorAttribute(InlineEditorModes, InlineEditorObjectFieldModes)
Initializes a new instance of the InlineEditorAttribute class.
public InlineEditorAttribute(InlineEditorModes inlineEditorMode = InlineEditorModes.GUIOnly, InlineEditorObjectFieldModes objectFieldMode = InlineEditorObjectFieldModes.Boxed)
InlineEditorModes inlineEditorMode

The inline editor mode.

InlineEditorObjectFieldModes objectFieldMode

How the object field should be drawn.

Initializes a new instance of the InlineEditorAttribute class.
public InlineEditorAttribute(InlineEditorObjectFieldModes objectFieldMode)
InlineEditorObjectFieldModes objectFieldMode

How the object field should be drawn.


Draw editor GUI inline.
public bool DrawGUI
Draw the header editor header inline.
public bool DrawHeader
Draw editor preview inline.
public bool DrawPreview
If true, the inline editor will start expanded.
public bool Expanded
If false, this will prevent the InlineEditor attribute from incrementing the InlineEditorAttributeDrawer.CurrentInlineEditorDrawDepth. This is helpful in cases where you want to draw the entire editor, and disregard attributes such as [HideInInlineEditorsAttribute] and [DisableInInlineEditorsAttribute].
public bool IncrementInlineEditorDrawerDepth
Maximum height of the inline editor. If the inline editor exceeds the specified height, a scrollbar will appear. Values less or equals to zero will let the InlineEditor expand to its full size.
public float MaxHeight
How the InlineEditor attribute drawer should draw the object field.
public InlineEditorObjectFieldModes ObjectFieldMode
The size of the editor preview if drawn alone.
public float PreviewHeight
The size of the editor preview if drawn together with GUI.
public float PreviewWidth

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.