- Home /
The question is answered, right answer was accepted
Editor Script into .dll(Solved)
I have a class (UI_Manager) that I'd like to have a custom editor for,Now, how would I go about doing the custom editor? I can't put it into the same assembly ,As it needs to go into (an) Editor folder, so I need to have two assemblies,one for the main class, one for the editor? But i don't know how to compile the editor assembly without including the main class as it gives errors the type UI_Manager could not be found. Is it is possible to do ? if anyone can help.
I've put editor scripts with normal scripts into single assembly and it works fine in Unity for me. You don't even need to have .dll in Editor folder.
This works but on build compilation unity through an exception regrading putting Editor Scripts Under Editor folder.
Answer by HafizAli · Jan 29, 2018 at 03:01 PM
So i solved this by creating a .dll for main script files and then making a new solution for the editor script and adding reference of the main scripts dll into this.
Just to add up, I struggle a lot just to fixed my own issue. I follow what you said but if somebody like me, added #if UNITY_EDITOR on the script will not work, you need to remove it. That solve my issue. I think its on unity when imported what platform will be .dll be exported.
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Save Components setting for reuse 1 Answer
How to add a component on a GameObject in Custom Inspector 1 Answer
Make the Inspector only show a specific CustomEditor 1 Answer