Zombie Profile picture
Programmer at @NewBlood
Feb 2, 2022 26 tweets 7 min read
#unitytips Let's talk singletons. Love or hate them, they're an extremely common pattern in Unity games—for good reason. The engine itself even has some built-in! (kinda)

However, I often see developers implement the pattern in very error-prone or overly-complex ways.

(thread) Consider the following example. It is representative of what you will typically see in tutorials and various other educational resources for Unity: Image