- Home /
Access EditorGUILayout objects
Hi,
I'm creating a custom editor for an entity, should be a drop down list for a string with EditorGUILayout.Popup.
My Script has many public values, so I let base.OnInspectorGUI() first create all the EditorGUILayout objects for every value.
But after that I want to edit a created object and change it from a string mask to a popup object.
Is this possible?
Answer by Loius · Aug 05, 2013 at 06:37 PM
Things that you see in the GUI are not actual objects, there's no way to change them once they're there.
You can [HideInInspector] whatever value you want to control the appearance of, and display it in your custom editor.
Ok that works, too, but it is then possible to change at least the order of the elements? With this the added Popup will be always at the start or end, but want to have it inbetween?
Your answer
![](https://koobas.hobune.stream/wayback/20220613111604im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
EditorGUILayout.Knob() !? 0 Answers
Editor GUI in Built Game 1 Answer