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

namespace Sirenix.OdinInspector
public class InlineEditorAttribute : Attribute


Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector

See Also


Return Type Definition Description
bool DrawGUI Draw editor GUI inline.
bool DrawHeader Draw the header editor header inline.
bool DrawPreview Draw editor preview inline.
bool Expanded If true, the inline editor will start expanded.
bool IncrementInlineEditorDrawerDepth 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].
float MaxHeight 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.
float PreviewHeight The size of the editor preview if drawn alone.
float PreviewWidth The size of the editor preview if drawn together with GUI.


Definition Description
InlineEditorAttribute(InlineEditorModes) Initializes a new instance of the InlineEditorAttribute class.


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;