

rig is responsible for handling its own data, stored in Scriptable Objects. Creating An Expression Menu Right-click in the Unity project, select Create/VRC Scriptable Objects/Expressions Menu Select the new object in the project. Then we can store the shared data across the modules in a scriptable object. Learn VR development by building immersive applications and games with Unity. No need to implement DontDestroyOnLoad in MonoBehaviour script instead of that put the required data in scriptable objects.įor example, if we are using some data of a player for handling different modules like updating UI, it’s behaviour, enemy behaviour, background music, special weapon access to fight with enemies.

Stored data in the scriptable object will be available across different scenes.
Scriptable objects build code#
It helps to architect your code in to independent modules.

They can be stored as assets in the project.No need to attach scriptable objects to the game objects.Data stored in the scriptable objects are independent of script instances.They are special assets which is meant to store data. Scriptable objects are the data containers which allows you to store the large amount of independent shared data.
Scriptable objects build how to#
In this article, we will discuss about scriptable objects and how to use them in unity applications.
