Documentation

Unity Engine

Download Unity

Unity Engine

ScriptableObject data assets

Store shared data in custom ScriptableObject assets independently from GameObjects, and use that data at runtime and in the Editor.
Read time 1 minuteLast updated 2 days ago

Use ScriptableObjects assets to store a single copy of shared data in memory independently from GameObjects. You can instantiate prefabs from ScriptableObject data.

Topic

Description

Introduction to ScriptableObjectUnderstand how to use ScriptableObject to store shared data as assets that are independent of GameObjects.
Instantiate prefabs with ScriptableObjectUse data stored in a ScriptableObject asset to control prefab instantiation at runtime.
Save changes to ScriptableObject dataEnsure Unity saves changes to ScriptableObject assets in the Editor in Play mode and Edit mode.

Additional resources