Version 3.3.1.2

TypeRegistry class

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

Methods

GetInheritors(Type)
public static List<Type> GetInheritors(Type type)
Parameters
System.Type type

Returns
System.Collections.Generic.List<System.Type>

GetInstantiableInheritors(Type, Boolean)
public static List<Type> GetInstantiableInheritors(Type type, bool includeUnityTypes)
Parameters
System.Type type

System.Boolean includeUnityTypes

Returns
System.Collections.Generic.List<System.Type>

GetInstantiableInheritors(Type, Boolean, Boolean)
public static List<Type> GetInstantiableInheritors(Type type, bool includeUnityTypes, bool excludeTypesWithoutDefaultConstructor)
Parameters
System.Type type

System.Boolean includeUnityTypes

System.Boolean excludeTypesWithoutDefaultConstructor

This is checked using HasDefaultConstructor(Type).

Returns
System.Collections.Generic.List<System.Type>

GetValidTypesInCategory(AssemblyCategory)
public static List<Type> GetValidTypesInCategory(AssemblyCategory category)
Parameters
AssemblyCategory category

Returns
System.Collections.Generic.List<System.Type>