ASK, MonoBehaviour vs ScriptableObject

Hello, I am starting Text adventure course
and I just reach where I need to make an array for the next state.

the question is my I need to put on Scriptableobject instead of MonoBehaviour?.

What is the difference?

Sorry, I don’t fully understand your question, but the difference between Mono and Scriptable is the following:

MonoBehaviour gives you access to certain types of variables, methods and messages. It also implies that it’s a script that should be attached to an object.

ScriptableObject is telling Unity that the script will serve to create an object that contains data. The script cannot be attached to an object. The object the script allows to create can be accessed by another script via multiple methods.

Here’s some documentation so you can get your head around this:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms