- Home /
Custom editor DLLs
I have created a custom editor that I would like to submit to the asset store shortly. I would like to provide my product as a DLL.
Do I need separate DLL's for editor and runtime?
What is the easiest way to create and manage the DLL project?
Answer by by0log1c · Apr 16, 2012 at 03:05 AM
Yes, when compiling .DLL you should separate all code that's using UnityEditor since it'll be left out of the build. You may have different libraries, or make your editor scripts as Content so they're not pre-compiled into the library.
As for creating and managing .DLL, I don't know of any way aside using Visual Studio's awesome build pipeline.
Now this is just opinion, and I'm also a fan of library since it allows to group scripts and obfuscate code, but for the same reason, I'd believe the AssetStore users tend to favor separate scripts, you may want to consider providing sources or something.
@TheBeardPhantom at the time of posting this question Unity didn't support namespaces with $$anonymous$$onoBehaviour
or ScriptableObject
's. Of course this is now possible since late in the Unity 3.x releases :)
Your answer
Follow this Question
Related Questions
when will the asset store tools be updated? 0 Answers
The Asset Store simply says "error" when trying to download anything on Unity 5. ?? 2 Answers
How stupid would it be to allow users to upload dll's for use in my application? 3 Answers
Is there a way open the 'sprite editor' window at runtime? 0 Answers
How do I ; from inside another script, read an image resource inside a DLL 1 Answer