- Home /
Question by
TenderclawWill · Jul 12, 2018 at 11:50 PM ·
c#editor-scriptingserialization
Can you force editor scripts to serialize their data,How to serialize fields in an editor script
Hey i am working on a custom editor for a unity created class (Mesh Renderer) and i have successfully made it so that the user can select an enum in the inspector and it will update the mesh renderer accordingly. This is all well and good, but whenever i deselect the object, the enum field in the editor script is reset to its default value (0) which is making me think its not serialized or saved anywhere. Ive searched for ways to save these values/get them to serialize, but have not found any useful info. Is this possible?
Comment