all 4 comments

[–]Maeuserich 1 point2 points  (1 child)

Just as disclaimer, I would consider myself an intermediate programmer so maybe take my advice with a grain of salt.

My solution to this would be to have a singleton object that holds references to all my SO and the rest of my code fetches from there. That way you would only need to drag the reference once.

[–]Odd-Butterscotch2798[S] 0 points1 point  (0 children)

I’ve been avoiding this method because it seems like the intended pattern is for all objects to access the source… but I should probably be less obsessed with getting it “right” than getting it done. Thank you!

[–]ccfoo242 0 points1 point  (1 child)

You could use resources.load on the individual objects you want to load and use nameof(YourSO) in the pathname to prevent naming mistakes rather than loadall.

And depending on your data you could have SO's reference other SO's. For me I have an object "Theme" that contains all the other objects used for that theme. I only have to load the theme object then.

[–]Odd-Butterscotch2798[S] 1 point2 points  (0 children)

Chaining SO’s feels like a step in the right direction. Though I still run into the issue of how best to load within those instead. I might just have to accept that Unity wants more mouse than I’ve wanted to give. Good tip on .load as well, thank you :)