Hi All,
I’m wondering if Unity has provided a way to get a list of the user generated script files within a project?
Thanks,
Hi All,
I’m wondering if Unity has provided a way to get a list of the user generated script files within a project?
Thanks,
Couldn’t find a Unity approach so here’s what I’m doing:
List<Type> types = new List<Type>();
foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
{
foreach (Type type in assembly.GetExportedTypes())
{
if (type.IsSubclassOf(typeof(baseOfTypeImLookingFor)))
{
types.Add(type);
}
}
}
Hope this can help someone down the road!