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.