Version 2.1.0.0

InspectorTypeDrawingConfigDrawer class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public class InspectorTypeDrawingConfigDrawer : OdinValueDrawer<InspectorTypeDrawingConfig>

Draws an InspectorTypeDrawingConfig instance, and contains methods getting all types that should be drawn by Odin.

Note that this class keeps a lot of static state, and is only intended to draw the instance of InspectorTypeDrawingConfig that exists in the InspectorConfig singleton asset. If used to draw other instances, odd behaviour may occur.

Inheritance

Constructors

InspectorTypeDrawingConfigDrawer()
public InspectorTypeDrawingConfigDrawer()

Methods

DrawPropertyLayout(GUIContent)
Draws the property.
protected override void DrawPropertyLayout(GUIContent label)
Parameters
UnityEngine.GUIContent label

GetEditors()
Gets an array of all assigned editor types, and the types they have to draw.
public static TypeDrawerPair[] GetEditors()
Returns
TypeDrawerPair[]

OdinCanCreateEditorFor(Type)
Determines whether Odin is capable of creating a custom editor for a given type.
public static bool OdinCanCreateEditorFor(Type type)
Parameters
System.Type type

Returns
System.Boolean

Extension Methods

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.