Singletons in Unity (done right)

Опубликовано: 22 Май 2023
на канале: Game Dev Beginner
15,409
712

Want to know how to CODE in Unity? Get my course here: https://www.udemy.com/course/how-to-c...

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/singleton...

LINKS
---------------------------------------------------

My favourite Unity Assets:

Rewired - Advanced input management for modern games and devices: https://assetstore.unity.com/packages...

DOTween Pro - So useful, it should be a built-in feature: https://assetstore.unity.com/packages...

Easy Save - Makes managing game saves and storing files easy: https://assetstore.unity.com/packages...

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...


CREDITS:
---------------------------------------------------

Intro music: Summer in the Neighborhood - Bad Snacks
Outro music: New Year - Bad Snacks
Artist link:    / @badsnacks  

Unity icons created by Freepik - https://www.flaticon.com/free-icons/u...
Man icons created by DinosoftLabs: www.flaticon.com/free-icons/man


Смотрите видео Singletons in Unity (done right) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Game Dev Beginner 22 Май 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 15,40 раз и оно понравилось 71 людям.