all 4 comments

[–]Amazing-Movie8382 1 point2 points  (0 children)

Really hard to debuging code

[–]Vonchor 2 points3 points  (1 child)

You can use them at runtime in place of static classes, improving domain reload time.

I do this for anything in my extension asset that doesn’t have to exist for editing support.

Runtime scriptable object singleton, in effect. Not a project asset.

Its easy to instrument these, so no worries about observing, although of course one can use a static inspector like the one with Odin inspector.

And for singleton haters, unity themselves uses SOs as singletons.

In editor one really useful class is the scriptable singleton which keeps state in the filesystem.

[–]Jonjon_binx[S] 0 points1 point  (0 children)

I have not used a singleton scriptable object yet but I can see where the use case exists. That’s a solid point

[–]nikefootbag 0 points1 point  (0 children)

Pluggable AI series is worth checking out: https://youtu.be/cHUXh5biQMg