scriptableobject
This is an old revision of the document!
ScriptableObject
private
fields on ScriptableObjects will be serialized and restored during a domain reload in the Editor.- You can prevent this by adding the
[NonSerialized]
attribute on the field.
Awake()
on ScriptableObjects is called when an instance of the ScriptableObject is created (such as byCreateInstance<MyScriptableObject>()
), or when the game starts in a build for asset instances of ScriptableObjects, but not on asset instances in Editor.
scriptableobject.1628184820.txt.gz · Last modified: 2025/01/15 04:35 (external edit)