Namespace: | Sirenix.OdinInspector.Editor |
Assembly: | Sirenix.OdinInspector.Editor |
public struct TypeDrawerPair : IEquatable<TypeDrawerPair>
Contains information about an editor type which is assigned to draw a certain type in the inspector.
This class uses the TypeBinder instance to bind types to names, and names to types.
public TypeDrawerPair(Type drawnType)
System.Type | drawnType | The drawn type. |
System.ArgumentNullException | drawnType is null |
public TypeDrawerPair(Type drawnType, Type editorType)
System.Type | drawnType | The drawn type. |
System.Type | editorType | The editor type. |
System.ArgumentNullException | drawnType is null |
public static readonly TypeDrawerPair Default
public string DrawnTypeName
public string EditorTypeName
public bool Equals(TypeDrawerPair other)
TypeDrawerPair | other | The TypeDrawerPair to compare with this instance. |
System.Boolean |
|
public override bool Equals(object obj)
System.Object | obj | The System.Object to compare with this instance. |
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. |
public static bool operator ==(TypeDrawerPair x, TypeDrawerPair y)
TypeDrawerPair | x | The x. |
TypeDrawerPair | y | The y. |
System.Boolean | The result of the operator. |
public static bool operator !=(TypeDrawerPair x, TypeDrawerPair y)
TypeDrawerPair | x | The x. |
TypeDrawerPair | y | The y. |
System.Boolean | The result of the operator. |