using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using UnityEditor; using UnityEngine; using UnityEngine.XR.Management; namespace UnityEditor.XR.Management { internal static class TypeLoaderExtensions { public static TypeCache.TypeCollection GetTypesWithInterface(this Assembly asm) { return TypeCache.GetTypesDerivedFrom(typeof(T)); } public static TypeCache.TypeCollection GetAllTypesWithInterface() { return TypeCache.GetTypesDerivedFrom(typeof(T)); } public static TypeCache.TypeCollection GetTypesWithAttribute(this Assembly asm) { return TypeCache.GetTypesWithAttribute(typeof(T)); } public static TypeCache.TypeCollection GetAllTypesWithAttribute() { return TypeCache.GetTypesWithAttribute(typeof(T)); } } }