Custom Editor not saving changes on Scriptable Object
Make Custom Editor for Item Definition Scriptable Object, and every time i make changes through custom editor, change scene/ play/ or do anything what refresh window, it's reset int in editor. Spent two days, already tried serializefield, SetDirty and System.Serialized, and its steel go so. Absolutely sure what its problem in custom editor, en certainly problem in int values (i've tested it). What way to make it save it self?
Answer by Kuro4027 · Nov 05, 2021 at 01:57 PM
Well, i spent night, so i didn't find how to do it, so my advice how to fix it- just move your int to script for Scriptable Object and make direct reference to it(not like ReferenceToInt= YourScript.IntInScript, just directly YourScript.IntInScript)
Your answer
Follow this Question
Related Questions
Unity3D ScriptableObject with UnityEvent not saving event parameter 0 Answers
Custom inspector - How to serialize scene objects in ScriptableObject? 0 Answers
Custom OnSceneGUI-editor not working for ScriptableObjects? 2 Answers
ScriptableObject not Serializing? 0 Answers
EditorGUILayout.ObjectField on a ScriptableObject's inspector doesn't update properly 0 Answers