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.
public InspectorTypeDrawingConfigDrawer()
protected override void DrawPropertyLayout(GUIContent label)
UnityEngine.GUIContent | label |
public static Type GetActualDrawingEditorForType(Type drawnType)
System.Type | drawnType |
System.Type |
public static HashSet<Type> GetAllTypesDrawnByOdin()
System.Collections.Generic.HashSet<System.Type> |
public static TypeDrawerPair[] GetEditors()
TypeDrawerPair[] |
protected override void Initialize()
public static bool IsOdinDrawingType(Type drawnType)
System.Type | drawnType |
System.Boolean |
public static bool OdinCanCreateEditorFor(Type type)
System.Type | type |
System.Boolean |