Can Display System.Serializable in a custom editor window without serializedObject?

I am working on a node editor with visual element. I make inspector to show node detail.
I know “PropertyField”, but it seems need to work with “SerializedObject”.
And my node graph define like this:


[Serializable]
public class Node{  }

 [Serializable]
 public class GraphModel : ScriptableObject {
     [NonSerialized]
     public List<NodeModel> nodelModelList = new List<NodeModel>();
}

I know I can create SerializedGraph from GraphModel , then get node property.
But I don’t wan’t do like this, I want show node detail just like “Unity Inspector”, just define a class with Serializable attribute then show it.

I think you mean SerializedProperty?

In any case a SerializedProperty cannot exist without a SerializedObject, as they make up the data structure of said object.

Unity has no means of auto-drawing properties without a SerializedProperty. You either handle it manually, or invest in something like Odin Inspector which is more than capable of drawing arbitrary values without the need to have them serialized.

Hopefully one day we can a replacement for the ancient SerializedObject/Property system.

Thanks. It’s not good, it will make code complex. Maybe I need Odin.