I have been wondering about the Scriptable Object for a while; I understand that you can create instances of it, and create it as assets, but why is it called scriptable object, and how do you write in a script in it?
system
3
Mike_3
2
It's called a scriptable object because it's a unity object which contains your own code, simple as that
class MyScriptableObject extends ScriptableObject
{
var exampleVariable = "Moo";
function ExampleFunction()
{
}
//whatever else you want in here
}