| Namespace: | Sirenix.OdinInspector.Editor.Drawers |
| Assembly: | Sirenix.OdinInspector.Editor |
public abstract class TwoDimensionalArrayDrawer<TArray, TElement> : OdinValueDrawer<TArray> where TArray : IList
protected TwoDimensionalArrayDrawer()
protected TableMatrixAttribute TableMatrixAttribute { get; }
Override this method in order to define custom type constraints to specify whether or not a type should be drawn by the drawer.
Note that Odin's
public override bool CanDrawTypeFilter(Type type)
| System.Type | type |
| System.Boolean |
protected virtual bool CompareElement(TElement a, TElement b)
| TElement | a | |
| TElement | b |
| System.Boolean |
protected abstract TElement DrawElement(Rect rect, TElement value)
| UnityEngine.Rect | rect | The rect. |
| TElement | value | The input value. |
| TElement | The output value. |
protected override void DrawPropertyLayout(GUIContent label)
| UnityEngine.GUIContent | label |
protected virtual TableMatrixAttribute GetDefaultTableMatrixAttributeSettings()
| TableMatrixAttribute |
protected virtual void OnBeforeDrawTable(IPropertyValueEntry<TArray> entry, TwoDimensionalArrayDrawer<TArray, TElement>.Context value, GUIContent label)
| Sirenix.OdinInspector.Editor.IPropertyValueEntry<TArray> | entry | |
| TwoDimensionalArrayDrawer.Context<> | value | |
| UnityEngine.GUIContent | label |