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)
@krut4rth11 ай бұрын
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!!
@awesometuts10 ай бұрын
thank you... I'm glad you like it...
@macleodgordon2 жыл бұрын
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.
@asumalkushwah3 жыл бұрын
I saw many tutorials but this tutorial clear my all concept about Singleton pattern and static variables
@baconchaney5 жыл бұрын
Really nicely explained, I was struggling to get my head around the concept but this has helped a lot! Thanks!
@FratNightGaming2 жыл бұрын
This video is incredible. Absolutely phenomenal teaching. I never comment on these videos, but you earned yourself a sub!
@vasudevkulkarni41604 жыл бұрын
Thanks for making our life easier Fahir Love and support from India :)
@Aye_Sid2 ай бұрын
Wow!!! Great tutorial. Thanks sir. 🙌
@sandityasnoormina10104 жыл бұрын
this is the best explanation so far
@16meashiqka964 жыл бұрын
Nice Explanation . I Recommend seeing this video . Superb . Keep it up .
@ignisfatuus88445 жыл бұрын
You're awesome man ! Now I completely understand singletons. Thanks a lot
@AdebayoAdegbemboAsa5 жыл бұрын
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.
@yahoruz4 жыл бұрын
this energy hyped me up bro
@murrayKorir6 жыл бұрын
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.
@eliorubenmc2 жыл бұрын
Good, thanks, just what I need to understand.
@peimanenato4 жыл бұрын
Thanks for great explanation. U point out the points
@Thoth4446 жыл бұрын
Thank you, Fahir!
@safakaplay20684 жыл бұрын
hey, thank you so much for educational videos. it really helps people.
@chakravarthye4 жыл бұрын
You rockkkk. Beautiful tutorial.
@saadbintarique18946 жыл бұрын
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.
@kayumiy5 жыл бұрын
nice explanation. super easy to understand. Thank you!
@antonkobziev4053 жыл бұрын
You are the best
@kebenny4 жыл бұрын
Nice explanation. Thanks
@PariChutia19904 жыл бұрын
Nice explanation
@rouzvegogh5 жыл бұрын
You Are Awesome!
@learningsomething89044 жыл бұрын
Really helpful!
@ankitraj31805 жыл бұрын
sir as a game developer do i need to learn more design patterns or Singleton is enough???
@hballamco4 жыл бұрын
Very nice tutorial. Could you please explain why would someone prefer a singleton over static classes? Thanks
@hballamco4 жыл бұрын
@@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
@coribeltran6915 жыл бұрын
You are fucking awesome. Thank you.
@ThePlayer-sz5np5 жыл бұрын
Finely i understand singltons
@anonymoussloth66873 жыл бұрын
So when we attach a script to a game object, r we actually creating a object of that script and attach that?
@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 ?
@carlabalos38844 жыл бұрын
Is this also the mainly use Game Manager class?
@carlabalos38844 жыл бұрын
@@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.
@badrkalitouss89244 жыл бұрын
So what is the role of this part of the code, if the singletons must not be destroyed: if(instance != null) { Destroy(gameObject); }
@xproflipscarab4 жыл бұрын
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
@gautamsharma98976 жыл бұрын
Can you make tutorial on creating ""Chat app for android in Unity3D""
@gautamsharma98976 жыл бұрын
So it will paid for me or free
@ryrenbayancatindig68995 жыл бұрын
Pay attention! pay attention here. no no pay attention I said!