- Home /
Field not Serializing in a custom class
See, I have two different classes: Node and GUIVariable, both are [System.Serializable]
. To do changes i have a custom window and inspector. My problem is a public GUIVariable selectedVariable
in the Node class.
My scriptableObject (where the data is and what i save) has some lists: List<Node> allNodes
and List<GUIVariable> allVariables
. and all of these saves correctly, but when i press play my selectedVariable variable in all the nodes goes to null.
Your answer
Follow this Question
Related Questions
Calling a derived class (Serialized in a Scriptable Object) returns the super class. 1 Answer
A scripted Object has a different layout when loading: scriptable objects and inheritance 1 Answer
Saving UnityEngine.Object into ScriptableObject 1 Answer
Multiple Cars not working 1 Answer
CustomEditor for an ScriptableObject asset only works after recompile. 1 Answer