Version 3.3.1.2

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

GetActualDrawingEditorForType(Type)
public static Type GetActualDrawingEditorForType(Type drawnType)
Parameters
System.Type drawnType

Returns
System.Type

GetAllTypesDrawnByOdin()
public static HashSet<Type> GetAllTypesDrawnByOdin()
Returns
System.Collections.Generic.HashSet<System.Type>

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

Initialize()
protected override void Initialize()
IsOdinDrawingType(Type)
public static bool IsOdinDrawingType(Type drawnType)
Parameters
System.Type drawnType

Returns
System.Boolean

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