- Home /
Is it possible to choose which custom editor load for specific script?
I have GO with the script attached to it (lets name it as TestScript) and two custom editors scripts: first has attribute [CustomEditor(typeof(MonoBehaviour), true)] and second [CustomEditor(typeof(TestScript))] By default in inspector for TestScript unity always load and show second custom editor. Is there any way to specify that it must show first?
Sounds like a problem that might be easier to solve with inheritance. You can create the second editor class based on the first, thereby getting the features of both.
Im afraid inheritance not possible in my user case scenario - TestScript and TestScriptCustomEditor always provided by third party as another package that can be presented as plain scripts and as locked dll AFTER my package is complete.
Your answer
Follow this Question
Related Questions
Why is my unity editor script not saving changes to the actual script? 0 Answers
Should I use Inspector or custom editor window? 1 Answer
CustomEditor: Inspector icon rapidly switching 0 Answers
How could I merge 2 components' inspectors through a custom editor? 2 Answers
[noone knows] array of objects with CustomPropertyDrawer not displayed 0 Answers