Namespace: | Sirenix.OdinInspector.Editor |
Assembly: | Sirenix.OdinInspector.Editor |
public struct UniqueDrawerKey : IEquatable<UniqueDrawerKey>
public class MyCustomTypeDrawer<T> : OdinValueDrawer<T> where T : MyCustomBaseType
{
protected override void DrawPropertyLayout(IPropertyValueEntry<T> entry, GUIContent label)
{
var isToggled = entry.Context(this, "toggled", false);
isToggled.Value = SirenixEditorGUI.Label(isToggled.Value, label);
if (SirenixEditorGUI.BeginFadeGroup(UniqueDrawerKey.Create(entry, this), isToggled.Value))
{
EditorGUI.indentLevel++;
this.CallNextDrawer(entry.Property, null);
EditorGUI.indentLevel--;
}
SirenixEditorGUI.EndFadeGroup();
}
}
public static UniqueDrawerKey Create(InspectorProperty property, OdinDrawer drawer)
InspectorProperty | property | The property. |
OdinDrawer | drawer | The drawer. |
UniqueDrawerKey |
public static UniqueDrawerKey Create(IPropertyValueEntry entry, OdinDrawer drawer)
Sirenix.OdinInspector.Editor.IPropertyValueEntry | entry | The property entry. |
OdinDrawer | drawer | The drawer. |
UniqueDrawerKey |
public bool Equals(UniqueDrawerKey other)
UniqueDrawerKey | other | The other key. |
System.Boolean |
public override bool Equals(object obj)
System.Object | obj |
System.Boolean |
public override int GetHashCode()
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |