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?
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)