MENU

Fun & Interesting

Singletons in Unity (done right)

Game Dev Beginner 17,758 2 years ago
Video Not Working? Fix It Now

Want to know how to CODE in Unity? Get my course here: https://www.udemy.com/course/how-to-code-in-unity/?referralCode=7D4BCF4F86A840FB720B Learn the pros & cons of using singletons in Unity, and decide for yourself if they can help you to develop your game more easily. 00:00 Intro 00:47 What is a Singleton? 02:39 Why use a Singleton? 03:00 Drawbacks of using Singletons 05:45 Is it ok to use Singletons? 06:53 Outro You'll learn how Singletons in Unity work, why they're useful and the real risks of using one in your project. For more about Singletons, read the full article here: https://gamedevbeginner.com/singletons-in-unity-the-right-way/ LINKS --------------------------------------------------- My favourite Unity Assets: Rewired - Advanced input management for modern games and devices: https://assetstore.unity.com/packages/tools/utilities/rewired-21676?aid=1011l4Qq2&pubref=yt_rewired DOTween Pro - So useful, it should be a built-in feature: https://assetstore.unity.com/packages/tools/visual-scripting/dotween-pro-32416?aid=1011l4Qq2&pubref=yt_dotween Easy Save - Makes managing game saves and storing files easy: https://assetstore.unity.com/packages/tools/utilities/easy-save-the-complete-save-data-serialization-asset-768?aid=1011l4Qq2&pubref=yt_easysave These are affiliate links, meaning that I may receive a small commission at no extra cost to you or the asset publisher. For more information, see my affiliate policy: https://gamedevbeginner.com/affiliate-policy/ CREDITS: --------------------------------------------------- Intro music: Summer in the Neighborhood - Bad Snacks Outro music: New Year - Bad Snacks Artist link: https://www.youtube.com/channel/UCBCI_QCAMe1hx8UNyvJlM_Q Unity icons created by Freepik - https://www.flaticon.com/free-icons/unity Man icons created by DinosoftLabs: www.flaticon.com/free-icons/man

Comment