How to display System.Serializable in a custom editor window

How can I display a random object marked with System.Serializable in a custom editor window? I want to create a sort of inspector panel I guess but just for that one object. Unfortunately it can’t be a scriptable object.

Is there some type of widget that will automatically populate a visual element with child objects corresponding to each property of my object?

PropertyField is probably what you are looking for.
You can bind your serializable property to it and it will use matching standard controls for every public variable.

1 Like

Thank you, yes this is what I was looking for. Works like a charm

1 Like