- Home /
Question by
.Talon · Dec 14, 2014 at 06:12 PM ·
editor-scriptingcustomeditor
Get CustomEditor for Script
Let's say I have a Script and a CustomEditor for that Script. How can I find out which CustomEditor belongs to which Script without instantiating them? (I want to create a List of KeyValuePair(System.Type, System.Type)
saving Scripts and their editors on Initialization of another Script).
Comment
I'm afraid that isn't possible, since there is no public variable in the CustomEditor class which tells us what type it is an editor for. We can get the CustomEditor attribute on an editor class, but there isn't any way to get what type it points to.