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?
Loius
2
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.