#Saving editor data
1 messages · Page 1 of 1 (latest)
In the component
The fields need to be serializable, and you either need to set them using SerializedProperty (strongly recommended), or call EditorUtility.SetDirty(target) after setting them.
I always forget that is there. Thanks
For now it's as simple as this
[SerializeField] public List<Node> mapNodes { get; set; }```
It tweaked a few other things which apparently made it stop working but this line was the same before...
properties are not serializable
Automatic ones are
No they are not
Yes they are
I am using this thing for a while
And it's officially supported by Unity
oh well, you can be wrong and not listen, that's okay
lol, oh look, not at all what you're doing
backing fields of properties
[field: SerializeField]
So are you saying that your code actually looks like this, or that you just posted something different
Need to add field:
Looked exactly like this, tho now I added field:
So, it wasn't working before, and as I said, properties are not serializable
instead you just ignored me, and rambled for a while saying it was working
I added it only for debugging like 5 mins ago chill ok?
👋
Thanks