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)]
[Conditional("UNITY_EDITOR")]
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.
public class InlineEditorExamples : MonoBehaviour
{
[DisableInInlineEditors]
public Vector3 DisabledInInlineEditors;
[HideInInlineEditors]
public Vector3 HiddenInInlineEditors;
[InlineEditor]
public Transform InlineComponent;
[InlineEditor(InlineEditorModes.FullEditor)]
public Material FullInlineEditor;
[InlineEditor(InlineEditorModes.GUIAndHeader)]
public Material InlineMaterial;
[InlineEditor(InlineEditorModes.SmallPreview)]
public Material[] InlineMaterialList;
[InlineEditor(InlineEditorModes.LargePreview)]
public GameObject InlineObjectPreview;
[InlineEditor(InlineEditorModes.LargePreview)]
public Mesh InlineMeshPreview;
}
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. |
public InlineEditorAttribute(InlineEditorObjectFieldModes objectFieldMode)
InlineEditorObjectFieldModes | objectFieldMode | How the object field should be drawn. |
public bool DisableGUIForVCSLockedAssets
public bool DrawGUI
public bool DrawHeader
public bool DrawPreview
public bool IncrementInlineEditorDrawerDepth
public float MaxHeight
public InlineEditorObjectFieldModes ObjectFieldMode
public PreviewAlignment PreviewAlignment
public float PreviewHeight
public float PreviewWidth
public bool Expanded { get; set; }
public bool ExpandedHasValue { get; }