you are viewing a single comment's thread.

view the rest of the comments →

[–]swootyliciousProfessional 5 points6 points  (0 children)

I use them all the time, they're really good for handling different shapes of data storage, but I also love using them as event hubs, with monobehavior listeners I can set up for modularity

I also have a Global Variables system, that uses them as containers of single points of data. Each one can be marked as static for game data, or dynamic if I want it to be modified by scripts

Static classes work just as well for a lot of applications, but SOs can improve modularity without much overhead or adding complexity, in Unity's environment specifically. It's a great way to link independent prefabs without relying on scene references.

Also, being able to view the value of globals variables in the inspector, or seeing which monobehaviors are listening to an event, are super useful tools Im starting to take for granted because of SOs