Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


scriptableobject

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
scriptableobject [2021/04/19 20:16] – created uninomiconadminscriptableobject [2025/01/15 04:35] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
   * ''private'' fields on ScriptableObjects will be serialized and restored during a domain reload in the Editor.   * ''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 by ''CreateInstance<MyScriptableObject>()''), or when the game starts in a build for asset instances of ScriptableObjects, but **not** on asset instances in Editor.
scriptableobject.1618863404.txt.gz · Last modified: 2025/01/15 04:35 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki