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

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

Awesome Tuts - Anyone Can Learn To Make Games

Awesome Tuts - Anyone Can Learn To Make Games

Күн бұрын

Пікірлер: 44
@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 11 ай бұрын
thank you... I'm glad you like it...
@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)
@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
@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 :)
@baconchaney
@baconchaney 5 жыл бұрын
Really nicely explained, I was struggling to get my head around the concept but this has helped a lot! Thanks!
@Aye_Sid
@Aye_Sid 3 ай бұрын
Wow!!! Great tutorial. Thanks sir. 🙌
@sandityasnoormina1010
@sandityasnoormina1010 4 жыл бұрын
this is the best explanation so far
@yahoruz
@yahoruz 4 жыл бұрын
this energy hyped me up bro
@ignisfatuus8844
@ignisfatuus8844 5 жыл бұрын
You're awesome man ! Now I completely understand singletons. Thanks a lot
@16meashiqka96
@16meashiqka96 4 жыл бұрын
Nice Explanation . I Recommend seeing this video . Superb . Keep it up .
@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.
@Thoth444
@Thoth444 6 жыл бұрын
Thank you, Fahir!
@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 3 жыл бұрын
Good, thanks, just what I need to understand.
@peimanenato
@peimanenato 4 жыл бұрын
Thanks for great explanation. U point out the points
@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.
@chakravarthye
@chakravarthye 4 жыл бұрын
You rockkkk. Beautiful tutorial.
@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?
@safakaplay2068
@safakaplay2068 4 жыл бұрын
hey, thank you so much for educational videos. it really helps people.
@antonkobziev405
@antonkobziev405 3 жыл бұрын
You are the best
@kayumiy
@kayumiy 5 жыл бұрын
nice explanation. super easy to understand. Thank you!
@kebenny
@kebenny 4 жыл бұрын
Nice explanation. Thanks
@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 ?
@PariChutia1990
@PariChutia1990 4 жыл бұрын
Nice explanation
@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.
@rouzvegogh
@rouzvegogh 5 жыл бұрын
You Are Awesome!
@hballamco
@hballamco 5 жыл бұрын
Very nice tutorial. Could you please explain why would someone prefer a singleton over static classes? Thanks
@hballamco
@hballamco 5 жыл бұрын
@@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
@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???
@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
@ThePlayer-sz5np
@ThePlayer-sz5np 5 жыл бұрын
Finely i understand singltons
@coribeltran691
@coribeltran691 5 жыл бұрын
You are fucking awesome. Thank you.
@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 М.
How To Get Hired In A Game Studio WITHOUT Experience
7:30
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 9 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Why Most Game Devs Get Rejected From Game Studios... And How To Make Sure That Doesn't Happen To You
6:41
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 2,5 М.
Indie Game Dev VS Getting A Job In A Game Studio
7:31
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 4,2 М.
How To Retarget Animations In Unity Engine + FREE Character Pack
8:04
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 1,7 М.
Is This The Best Marketplace For Game Development Assets?
3:02
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 1,1 М.
Unreal Engine 5 Environment Preview - Burned City, Asian Village, Gas Station, Sci Fi, Zeppelin
8:47
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 586
How To Apply Any Animation To Your Characters In Unreal Engine 5
22:04
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 1,7 М.
Unreal Engine Environment - Abandoned Urban Block - Realistic Environment
2:57
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 628
How To Animate Charactes With Mixamo For Unreal & Unity + FREE Download 3 Quality Characters
19:02
Awesome Tuts - Anyone Can Learn To Make Games
Рет қаралды 1 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19