how can i make something like this work? (For, in Editor, customization options of variables of script in Editor)
I want this option to make available various customizable arrays for information input. For example, in the editor, being able to change a variables number, and have that amount of arrays with another variable for each to name each array variable. Plz comment on this concept! =D
asked Oct 18 '10 at 06:02 PM
Non-typed containers and containers of typed containers will not serialize in and of themselves. To serialize a container of a non-serializing type, you would need to make the type serializable:
To make a CustomEditor to edit a specific class is fairly simple (See the example in Editor).
Through the broken English, it almost reads as though you are suggesting dynamically building a class editor to create new struct classes. Is this what you are suggesting?
answered Oct 18 '10 at 07:07 PM
I think he means exposing one variable in the inspector, that by changing it will show expose other fields in the inspector... Like several operation modes for one class, each exposing different variables that relate to that mode.
And if that's the case SerializedProperty is a good solution for that. The example shows you can expose one private variable of the transform class. You can expose pretty much whatever you want, based on whatever you want.
answered Oct 18 '10 at 07:43 PM