Show List<> in EditorWindow? [C#]
I'm trying to make an EditorWindow that has a List<> on it. But I can't figure out how to do it. I have my List<> in another class that derives from MonoBehavior and I'm not really sure how to call it onto the EditorWindow.
Old tread, but yet, I'm bumping this: It appears to be a very precise description of a problem apparently a trillion people have.. I wonder why it has to be so hard.. If any one out there can give a simple, yet full answer it'd be much appreciated :)
Answer by Spykill · Jul 30, 2016 at 11:20 PM
I am not the most experienced with Editor code, but I believe you can use SerializedProperty and EditorGUI.PropertyField for this. The way I understand it, it will render the property as if it is serialized, which Lists can be. Just an idea to get the ball rolling. @Fritsl