Namespace: | Sirenix.OdinInspector.Editor |
Assembly: | Sirenix.OdinInspector.Editor |
public static class TypeRegistry
public static readonly Dictionary<AssemblyCategory, string> CategoryStringMap
public static HashSet<Type> HiddenTypes
public static HashSet<Type> IllegalTypes
public static readonly Dictionary<Type, TypeSelectorItemSettingsAttribute> ItemSettings
public static Type[] SystemTypes
public static HashSet<Type> Types
public static void AddClosedGenericInheritors<TCollection>(ref TCollection collection, Type openGenericType, Type closedGenericType, bool isOpenGeneric, Type[] array, ref int length)
where TCollection : IList<Type>
TCollection | collection | |
System.Type | openGenericType | |
System.Type | closedGenericType | |
System.Boolean | isOpenGeneric | |
System.Type[] | array | |
System.Int32 | length |
TCollection |
public static void CountCSharpAndUnityInheritors(Type baseType, out int cSharpCount, out int unityCount)
System.Type | baseType | |
System.Int32 | cSharpCount | |
System.Int32 | unityCount |
public static string GetCategoryPath(Type type, bool preferNamespaces)
System.Type | type | |
System.Boolean | preferNamespaces |
System.String |
public static Type[] GetInheritors(Type baseType)
System.Type | baseType |
System.Type[] |
public static string GetName(Type type)
System.Type | type |
System.String |
public static int GetPriority(Type type)
System.Type | type |
System.Int32 |
public static bool HasUnityInheritors(Type baseType)
System.Type | baseType |
System.Boolean |
public static bool IsValidNonGenericType(Type type)
System.Type | type |
System.Boolean |
public static bool IsValidType(Type type)
System.Type | type |
System.Boolean |
public static Type MakeArrayTypeIfValid(Type baseType, Type inflatedType)
System.Type | baseType | |
System.Type | inflatedType |
System.Type |
public static bool TryGetCustomName(Type type, out string customName)
System.Type | type | |
System.String | customName |
System.Boolean |
public static bool TryGetIcon(Type type, out SdfIconType icon, out Color? iconColor)
System.Type | type | |
SdfIconType | icon | |
System.Nullable<UnityEngine.Color> | iconColor |
System.Boolean |