I'm writing a custom inspector for a component, and I want to override "most" of the visible properties of the component; however, there are a couple of the properties that Id' really like to be rendered out using the default method DrawDefaultInspector().
While I know this method is an all or nothing, I would like to be able to utilize its standard view for an array of objects that I have. The standard inspector for arrays works fine for adding/removing from the list, drag and drop, etc. I'd hate to have to rewrite a version of that if I could just use the built-in renderer.
Looking at the EditorGUILayout methods and EditorGUI methods, I don't see anything like a "EditorGUILayout.ArrayField" or something. Does such a thing exist, or is there a way to get the standard array inspector GUI to show up in the inspector window without having to hide every property but that one array via attributes?
Thanks for any insight.

Reply With Quote