How to include editor extensions in plugin?
I have a plugin (DIRE.Core.dll) that I'm creating for Unity that includes scripts, support code, and Editor extensions. When I try to build a stand alone player, I get the following error.
ArgumentException: The Assembly UnityEditor is referenced by DIRE.Core ('Assets/DIRE/Core/DIRE.Core.dll'). But the dll is not allowed to be included or could not be found. UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch,
Alright. I understand that I've made my plugin dependent on the UnityEditor assembly and that UnityEditor isn't included in the player build. What's the right way to handle a plugin that contains player code and editor extensions?
I'm guessing I could probably break out the Editor extensions into a separate Assembly and mark it for the Editor only. For simplicity, I'd rather have it all self contained.
Thanks.
As I suggested, I broke out the Editor extensions to a separate assembly. I'd still rather have a single plugin, but it's easy enough to mark the separate assembly for the Editor only. I appreciate having that option. (Thanks!)