Singletons In Unity - In Depth Overview Of Singletons - Unity Game Manager Tutorial

  Рет қаралды 16,783

Awesome Tuts - Anyone Can Learn To Make Games

Awesome Tuts - Anyone Can Learn To Make Games

Күн бұрын

Пікірлер: 44
@kitchenspider1539
@kitchenspider1539 4 жыл бұрын
This subject was explained so well that when I found Fahir on udemy I immediately bought his course. I've watched all kinds of vids on unity, including Brackeys (which are good, not knocking him) but this guy explains it in the most logically sensible way (to me), and there is no fluff, just straight to the point. He also talks better than most of the english speaking instructors I see (they usually talk slow, or have a weird pace or cadence while Fahir talks pretty fast)
@krut4rth
@krut4rth 11 ай бұрын
Best tutorial out of every other videos! really u explained all the necessary questions that students have: why singleton, what is their purpose, how to access and what happens if we don't destroy other instances and why it is important to do that. PLUS lively teaching style, love your energetic voice!!
@awesometuts
@awesometuts 10 ай бұрын
thank you... I'm glad you like it...
@macleodgordon
@macleodgordon 2 жыл бұрын
Awesome tutorial on Singletons, very fast paced, you will need to pause and repeat several times to get the gist of what Singletons are and what to use them for. Thank you. Now I just have to figure out how to implement this in a game I have written which has some problems that may get fixed because of this tutorial.
@asumalkushwah
@asumalkushwah 3 жыл бұрын
I saw many tutorials but this tutorial clear my all concept about Singleton pattern and static variables
@baconchaney
@baconchaney 5 жыл бұрын
Really nicely explained, I was struggling to get my head around the concept but this has helped a lot! Thanks!
@FratNightGaming
@FratNightGaming 2 жыл бұрын
This video is incredible. Absolutely phenomenal teaching. I never comment on these videos, but you earned yourself a sub!
@vasudevkulkarni4160
@vasudevkulkarni4160 4 жыл бұрын
Thanks for making our life easier Fahir Love and support from India :)
@Aye_Sid
@Aye_Sid 2 ай бұрын
Wow!!! Great tutorial. Thanks sir. 🙌
@sandityasnoormina1010
@sandityasnoormina1010 4 жыл бұрын
this is the best explanation so far
@16meashiqka96
@16meashiqka96 4 жыл бұрын
Nice Explanation . I Recommend seeing this video . Superb . Keep it up .
@ignisfatuus8844
@ignisfatuus8844 5 жыл бұрын
You're awesome man ! Now I completely understand singletons. Thanks a lot
@AdebayoAdegbemboAsa
@AdebayoAdegbemboAsa 5 жыл бұрын
Hi. Thanks for making clear the efficiency of static variables in Unity. I've become very conscious of memory management and been too weary of static variables.
@yahoruz
@yahoruz 4 жыл бұрын
this energy hyped me up bro
@murrayKorir
@murrayKorir 6 жыл бұрын
I learnt a lot from you class man, since I learnt how to build jack the giant have been able to create my own game and published it on google play store , however I was having challenges about singletons, the command DontDestroyOnLoad(gameobject) and this video has shade a lot of light for my plans with the game, especially in character selections something I intend to implement in the game. Thanks you.
@eliorubenmc
@eliorubenmc 2 жыл бұрын
Good, thanks, just what I need to understand.
@peimanenato
@peimanenato 4 жыл бұрын
Thanks for great explanation. U point out the points
@Thoth444
@Thoth444 6 жыл бұрын
Thank you, Fahir!
@safakaplay2068
@safakaplay2068 4 жыл бұрын
hey, thank you so much for educational videos. it really helps people.
@chakravarthye
@chakravarthye 4 жыл бұрын
You rockkkk. Beautiful tutorial.
@saadbintarique1894
@saadbintarique1894 6 жыл бұрын
Liked the tutorial. Really helped me clear my Singletons. I recently had a run in with a problem using Singletons, I was able to resolve it but this really clarified me. A quick request. Could you make a video where you draw parallels between the C# that we use in Unity and C# in general (or point me to it if one exists already)? I am looking for some core C# knowledge probably to use outside of Unity which means I am looking for a non Unity (or Games) based C# tutorials.
@kayumiy
@kayumiy 5 жыл бұрын
nice explanation. super easy to understand. Thank you!
@antonkobziev405
@antonkobziev405 3 жыл бұрын
You are the best
@kebenny
@kebenny 4 жыл бұрын
Nice explanation. Thanks
@PariChutia1990
@PariChutia1990 4 жыл бұрын
Nice explanation
@rouzvegogh
@rouzvegogh 5 жыл бұрын
You Are Awesome!
@learningsomething8904
@learningsomething8904 4 жыл бұрын
Really helpful!
@ankitraj3180
@ankitraj3180 5 жыл бұрын
sir as a game developer do i need to learn more design patterns or Singleton is enough???
@hballamco
@hballamco 4 жыл бұрын
Very nice tutorial. Could you please explain why would someone prefer a singleton over static classes? Thanks
@hballamco
@hballamco 4 жыл бұрын
@@awesometuts sorry for the confusion. Basically I did some research and read several articles and discussions comparing these two concepts in case someone wants to make a game manager that controls game rules (which is common for most games). Basically, many (as I noticed) prefer the singleton pattern. Although, a static class could be created with variables and functions that would act as game rule class. I hope I explained that correctly as my english is not my mother tongue. Thank again
@coribeltran691
@coribeltran691 5 жыл бұрын
You are fucking awesome. Thank you.
@ThePlayer-sz5np
@ThePlayer-sz5np 5 жыл бұрын
Finely i understand singltons
@anonymoussloth6687
@anonymoussloth6687 3 жыл бұрын
So when we attach a script to a game object, r we actually creating a object of that script and attach that?
@xoomzera2830
@xoomzera2830 Жыл бұрын
question if i have 5 classes i want to acess the number of lifes as u said but singletone is used only with 1 class what's the point xd ?
@carlabalos3884
@carlabalos3884 4 жыл бұрын
Is this also the mainly use Game Manager class?
@carlabalos3884
@carlabalos3884 4 жыл бұрын
@@awesometuts I always saw it in most tutorial they are using game manager in their game. I just thought that it is related to this.
@badrkalitouss8924
@badrkalitouss8924 4 жыл бұрын
So what is the role of this part of the code, if the singletons must not be destroyed: if(instance != null) { Destroy(gameObject); }
@xproflipscarab
@xproflipscarab 4 жыл бұрын
Ok when the Singleton is starting it uses this IF statement to check the Instance variable, So If (instance*This Singleton Instance* != *Is NOT equal to* null *a empty value*) Then Destroy else if (This instance IS equal to Null *Meaning Nothing has been assigned yet*) then assign this instance of the class as the static instance. He has written in this the opposite way to what i think makes sense, #region Instance Manager if (Instance == null) //Has the class been run before and assigned a variable ? { Instance = this; //If Instance Is Empty *NULL* Then assign this class as the static instance DontDestroyOnLoad(gameObject); //Plz Dont hurt me } else //If Instance is anything but NULL meaning its already been assigned by another version of this class { Destroy(gameObject); //If Instance has already been Initialized then this class gets YEETED! } #endregion
@gautamsharma9897
@gautamsharma9897 6 жыл бұрын
Can you make tutorial on creating ""Chat app for android in Unity3D""
@gautamsharma9897
@gautamsharma9897 6 жыл бұрын
So it will paid for me or free
@ryrenbayancatindig6899
@ryrenbayancatindig6899 5 жыл бұрын
Pay attention! pay attention here. no no pay attention I said!
How To Render Sprites In Unity - Sprites Rendering Order
14:35
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 2,9 М.
Delegation In C# - Delegates And Events And How To Use Them In Unity
31:57
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 10 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Singletons in Unity (done right)
7:26
Game Dev Beginner
Рет қаралды 17 М.
Everything You Need to Know About Singletons in Unity
8:38
Infallible Code
Рет қаралды 89 М.
20 Advanced Coding Tips For Big Unity Projects
22:23
Tesseract
Рет қаралды 209 М.
C# Design Patterns In Unity - Code Like A Pro
24:40
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 18 М.
Coroutines In Unity - What Are Coroutines And How To Use Them - Coroutines Unity Tutorial
18:36
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 21 М.
Saving Game Data In Unity | How To Save Game Data In Unity | Save Load Game Data Unity
23:27
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 27 М.
You're Not a Solo Dev and You Can't Make a Game on Your Own
7:27
Elusive Panda
Рет қаралды 64 М.
Design Pattern: Singletons in Unity
18:58
samyam
Рет қаралды 15 М.
The Ultimate Introduction to Scriptable Objects in Unity
20:45
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН