Version 3.3.0.2

TypeRegistry class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public static class TypeRegistry
Inheritance
  • System.Object
  • TypeRegistry

Fields

CategoryStringMap
public static readonly Dictionary<AssemblyCategory, string> CategoryStringMap
HiddenTypes
public static HashSet<Type> HiddenTypes
IllegalTypes
public static HashSet<Type> IllegalTypes
ItemSettings
public static readonly Dictionary<Type, TypeSelectorItemSettingsAttribute> ItemSettings
SystemTypes
public static Type[] SystemTypes
Types
public static HashSet<Type> Types

Methods

AddClosedGenericInheritors<TCollection>(ref TCollection, Type, Type, Boolean, Type[], ref Int32)
public static void AddClosedGenericInheritors<TCollection>(ref TCollection collection, Type openGenericType, Type closedGenericType, bool isOpenGeneric, Type[] array, ref int length)
    where TCollection : IList<Type>
Parameters
TCollection collection

System.Type openGenericType

System.Type closedGenericType

System.Boolean isOpenGeneric

System.Type[] array

System.Int32 length

Type Parameters
TCollection

CountCSharpAndUnityInheritors(Type, out Int32, out Int32)
public static void CountCSharpAndUnityInheritors(Type baseType, out int cSharpCount, out int unityCount)
Parameters
System.Type baseType

System.Int32 cSharpCount

System.Int32 unityCount

GetCategoryPath(Type, Boolean)
public static string GetCategoryPath(Type type, bool preferNamespaces)
Parameters
System.Type type

System.Boolean preferNamespaces

Returns
System.String

GetInheritors(Type)
public static Type[] GetInheritors(Type baseType)
Parameters
System.Type baseType

Returns
System.Type[]

GetName(Type)
public static string GetName(Type type)
Parameters
System.Type type

Returns
System.String

GetPriority(Type)
public static int GetPriority(Type type)
Parameters
System.Type type

Returns
System.Int32

HasUnityInheritors(Type)
public static bool HasUnityInheritors(Type baseType)
Parameters
System.Type baseType

Returns
System.Boolean

IsValidNonGenericType(Type)
public static bool IsValidNonGenericType(Type type)
Parameters
System.Type type

Returns
System.Boolean

IsValidType(Type)
public static bool IsValidType(Type type)
Parameters
System.Type type

Returns
System.Boolean

MakeArrayTypeIfValid(Type, Type)
public static Type MakeArrayTypeIfValid(Type baseType, Type inflatedType)
Parameters
System.Type baseType

System.Type inflatedType

Returns
System.Type

TryGetCustomName(Type, out String)
public static bool TryGetCustomName(Type type, out string customName)
Parameters
System.Type type

System.String customName

Returns
System.Boolean

TryGetIcon(Type, out SdfIconType, out Nullable<Color>)
public static bool TryGetIcon(Type type, out SdfIconType icon, out Color? iconColor)
Parameters
System.Type type

SdfIconType icon

System.Nullable<UnityEngine.Color> iconColor

Returns
System.Boolean