0
Completed

Make assemblies defining AssemblyIsEditorAssemblyAttribute editor assemblies

Jöran Malek 3 years ago updated by Lazlo Bonin (Lead Developer) 3 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:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):