I am using scriptable objects with a simple function inside that gets called every frame, but there’s a variable that needs to be stored among frames. Is a private variable that doesn’t get read outside the scriptable object. As far as I know, scriptable objects are only meant to store and read data. I have not run into issues by now, but what could be possibly happen? Is there any issue by doing this?
In the end scriptable objects are “normal” classes with some unity stuff. So it’s not “forbidden” to use it like this. Just be aware that the private member will not get serialized automatically but from your description it seems that’s not required anyway. And when you clone/instantiate it how the initial value set?
If I remember correctly, Praxis exploded due to overmining and insufficient safety precautions.
![]()
Huh? I thought it was a covert federation sabotage act with help of the romulans. You know, the films are distorting the truth? ![]()
I thought I’d stick with the mainstream narrative rather than have this conspiracy theory debate. ![]()
I have moved the behaviour from scriptable objects to mono behaviour, as it was getting to messy to have in a separated script. So i just use Scriptable as data containers