Huy Minh Ha

Software development, Tech and other stuff

Thu 29 September 2016

Unity singleton

Posted by Ha.Minh in Unity   

First of all, please remember that Singletons are generally not recommended due to various obvious disadvantages:

  • Hard to reason about code
  • Encourage coupling
  • Potential concurrency issue

However, in game development it's super useful to have singleton for many types of global system, including but not limited to:

  • Sound system ...

Read more...