- Home /
How to edit a enumerator in the editor?
How could I make it so that I can add or remove things from an enumerator in the editor?
Answer by NutellaDaddy · Jun 10, 2014 at 04:55 PM
I think I would have to extend the editor. I think I was looking for this ,but I just didn't search the right thing. http://docs.unity3d.com/ScriptReference/EditorGUILayout.EnumPopup.html
Answer by Zodiarc · Jun 10, 2014 at 07:07 AM
I may be wrong but I think it's impossible. To be able to edit something in the editor (or inspector), you need to attach it to a game object and in order to do this, the class must extend from MonoBehaviour.
Enumerators are unable to extend a class.
But as I said I may be wrong and there could be a way.
I was trying to learn how to extend the editor to maybe see if it would be possible that way.
Your answer
![](https://koobas.hobune.stream/wayback/20220613151212im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to make tab in editor near the top? 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Cross project scripting? 1 Answer
How can an editor script know when another script was removed from the project? 1 Answer
How to get variables of the script show in unity editor/inspector? 2 Answers