Make assemblies defining AssemblyIsEditorAssemblyAttribute editor assemblies

Jöran Malek 4 years ago updated by Lazlo Bonin (Lead Developer) 4 years ago 2

I'd like to see following addition to Ludiq.Core.Editor:

private static bool IsEditorAssembly(Assembly assembly)
    if (Attribute.IsDefined(assembly, typeof(UnityEngine.AssemblyIsEditorAssembly)))
        return true;
    return Codebase.IsEditorAssembly(assembly.GetName());

This way we can define libraries that expose editor functionality to Bolt (like Descriptors) without having to access UnityEditor anywhere in code.

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):