PAUSE MENU in Unity

  Рет қаралды 980,432

Brackeys

Brackeys

6 жыл бұрын

Learn how to make a pause menu using Unity!
As mentioned in the video, we've already created a start menu and a settings menu. Check them out:
Start menu: goo.gl/EM7rr6
Settings menu: goo.gl/KBgy8p
TextMesh Pro Video: goo.gl/YdQ3MA
Get TextMesh Pro: goo.gl/Z9iHxH
❤️ Donate: www.paypal.com/donate/?hosted...
····················································································
► Join Discord: / discord
♥ Subscribe: bit.ly/1kMekJV
● Website: brackeys.com/
● Facebook: / brackeys
● Twitter: / brackeystweet
········································­­·······································­·­····
Edited by Sofibab & LeBonques.
········································­­·······································­·­····
► All content by Brackeys is 100% free. We believe that education should be available for everyone.
❤️ Donate: www.paypal.com/donate/?hosted...
········································­­·······································­·­····
♪ Baby Plays Electro Games
teknoaxe.com/cgi-bin/link_code...

Пікірлер: 1 900
@bumpleGrumpGames
@bumpleGrumpGames Жыл бұрын
It's mind blowing how Brackeys videos stay relevant and work so well 6 YEARS LATER. Making games is a daunting task but this content has made the learning curve so much smoother! Thank you for sharing so much knowledge with the indie game dev community. 🙏🙏🙏
@BlowFlow04
@BlowFlow04 8 ай бұрын
tu eres tonto oque
@Ice_ZOMBIES
@Ice_ZOMBIES 2 жыл бұрын
That sad feeling when you discover Brackey and his videos after he has already left KZfaq... I feel like I just missed a legend passing by. God damn
@thebvfreak
@thebvfreak Жыл бұрын
@McTaterB same tho ;-;
@1alexisfan
@1alexisfan 2 ай бұрын
He's back!!!
@siva6137
@siva6137 6 жыл бұрын
Who dislikes these videos? They're bloody free lessons.
@dfhdgsdcrthfjghktygerte
@dfhdgsdcrthfjghktygerte 6 жыл бұрын
Sure. I like the all free lessons on youtube, especially with crappy content and retarded speaker, even if lesson is a trash - i like it, because i'm freebie!
@siva6137
@siva6137 6 жыл бұрын
Ouuuu, I can sense sarcasm here. No hate whatsoever, but, it takes a lot of effort to create/develop something. We just need to keep that in mind before commenting. Support or Ignore.
@rodentlover100
@rodentlover100 6 жыл бұрын
Russian man take me by the hand lead me to the land with words I don't understand
@rodentlover100
@rodentlover100 6 жыл бұрын
Russian man you're honestly stupid if you think these are bad lessons. Maybe learn how to code so you actually know what you're doing instead of copying his code letter for letter word for word and crying when you mess it up.
@Definitely_a_Fox
@Definitely_a_Fox 6 жыл бұрын
My brain hurts when spelling errors cause errors in code, but the real error is believing that the teacher screwed up and gave you a bad lesson.
@Anthrocarbon
@Anthrocarbon Жыл бұрын
Once again, years on, these tutorials remain a staple of my learning. Brackeys, I hope you're all having a great future whatever you're doing.
@cryzzzz
@cryzzzz Жыл бұрын
Mine is just not working I dont get the game object?
@jakethewoz
@jakethewoz 5 жыл бұрын
These are by far the best tutorials anywhere. Tried to make a pause menu on my own, got stuck, came here and everything is just simple and crystal clear. Thank you so much!
@retsapb6319
@retsapb6319 4 жыл бұрын
These lessons are so clear, well edited and to the point is unbelievable. Sometimes i find myself binge watching tutorials that i dont need just because they are so entertaining
@FriesPG
@FriesPG Жыл бұрын
How do I fix error cs0106?
@MohanABK
@MohanABK 6 жыл бұрын
Man, you deserve way more subscribers. This is legit hard-earned, good quality, perfect explanation pace, learning content.
@christianthompson1839
@christianthompson1839 5 жыл бұрын
Why was this the hardest part in making my game xD Also thanks for the freaking free lessons, tbh I've learned more from YOU than the lessons my parents paid for, that's freaking cool, like you! I might donate when I have money to get you a cup of coffee, thanks!
@CC_-pn2og
@CC_-pn2og 2 жыл бұрын
i know menus are so hard!
@achintyacancode3543
@achintyacancode3543 3 жыл бұрын
If your game gets stuck when you reload it from the menu, Do this - When you go to load the menu, in the LoadMenu function, Make sure to include the Resume function, or your game will load in a paused state. As a matter of fact, wherever you are getting this problem, just call the resume function before transitioning to the next level. Hope I helped you!
@connorlewis984
@connorlewis984 3 жыл бұрын
You're a LEGEND Wumpus! Thoss Discord devs taught you well!
@nowlog502
@nowlog502 2 жыл бұрын
save scene with your menu panel as inactive and it will work as in the video
@ItssVenom
@ItssVenom 2 жыл бұрын
Thank you I was looking for a comment giving an explanation to this issue haha
@s1moq108
@s1moq108 2 жыл бұрын
can someone explane me better i coudnt find that button
@sausagequeen
@sausagequeen 2 жыл бұрын
@@ItssVenom it says it in the video 😐
@explior6558
@explior6558 4 жыл бұрын
Thank you so much Brackeys, that helped a lot as usual!
@wushu7294
@wushu7294 4 жыл бұрын
The best thing about his videos are , they are to the point. He does not waste any time and has all of his videos edited perfectly. Great Job.
@thepithief3700
@thepithief3700 6 жыл бұрын
Brackeys, you have incredible timing! A couple of days ago i was working on a pause menu in a project i am working on. Then a couple days later i see this :) Great video, it was very informative!
@alekosthecrow
@alekosthecrow 4 жыл бұрын
2:10 Imagine having to add a shadow component to your text ~This post was made by the TMP gang
@joevent
@joevent 4 жыл бұрын
Im using Unity 5.6.7f, why don't I have text mesh pro?
@alekosthecrow
@alekosthecrow 4 жыл бұрын
@@joevent you need to import it
@pitbull2498
@pitbull2498 3 жыл бұрын
@@Plazmin hey stop it text mesh better ~This post was made by the TMP gang
@lightninbolt986
@lightninbolt986 3 жыл бұрын
@@joevent ​ Imagine having to import it. ~this post is by latest unity with inbuilt TMP gang
@bonzodimduly
@bonzodimduly 2 жыл бұрын
i use custom fonts and cant use TMP with them
@koseki_stuff
@koseki_stuff 3 жыл бұрын
I am watching this at 1:00 AM, slowly losing my sanity, but thanks tho REST IN PEPPORONIS BRACKEYS 2012 - 2020
@michaelarteaga2691
@michaelarteaga2691 3 жыл бұрын
REST IN PEPPORONIS
@shabnamshekhaji5540
@shabnamshekhaji5540 3 жыл бұрын
REST IN PEPPERONIS
@taboret3273
@taboret3273 3 жыл бұрын
REST IN PEPPOROINIS
@coIlgnu
@coIlgnu 3 жыл бұрын
REST IN PAINIS
@Branzoaica
@Branzoaica 2 жыл бұрын
happens to the most of us
@OilRacki
@OilRacki 6 жыл бұрын
This is a good tutorial. It's a fairly basic concept, but you expand on it nicely, and your pacing is perfect. I like how you fly through it in the beginning. Sometimes tutorials go a little too slow. We have ability to pause and rewind video, folks! Saved this one to my bookmarks for later when I decide to add pause menu to my game.
@angelsantillan-gil4201
@angelsantillan-gil4201 4 жыл бұрын
Hey man just want to say you have some great tutorial videos and you have really helped me out a lot this year. I'm new to unity and I'm studying video game design at CSU Chico and your tutorial videos have helped me significantly! Both for class and for learning overall. Thank you so much! I have subscribed and liked all of the tutorial videos I've watched from you. thank you so much, I know these videos are two years old an I'm barely watching them but they have been very helpful non the less! So, once again, thank you and I am grateful there are people like you in this world willing to share their knowledge and help others like me.
@pierceb-in2rj
@pierceb-in2rj 6 жыл бұрын
12 minutes long, posted 3 minutes ago, people already saying thanks
@MohanABK
@MohanABK 6 жыл бұрын
Cause it's Brackeys. You know it's going to be a good tutorial.
@lbstester
@lbstester 6 жыл бұрын
blog not found
@fusion610
@fusion610 6 жыл бұрын
blog has been removed
@bobsagget823
@bobsagget823 5 жыл бұрын
5:53 -5:57 you literally CANNOT do this. It doesn't work. Compiler error CS0120: An object reference is required for the non-static field, method, or property 'pauseMenuUI' Why show us techniques that DON'T WORK?s
@kmonty2009
@kmonty2009 5 жыл бұрын
@@bobsagget823 I just did this and it works fine. Not sure why you are running into errors but mine is fine.
@olegfrolovdesign
@olegfrolovdesign 5 жыл бұрын
Лучший канал с уроками по Unity! Спасибо большое!
@WibleWobble
@WibleWobble 2 жыл бұрын
best unity tutorials i have seen. Beginner friendly, and cover like basically everything you need to make a really good game
@TheRandomYoYo
@TheRandomYoYo 2 жыл бұрын
Cheers mate! You showed me how to much much better keep track of my UI buttons and add the proper functionality to them. Have spent about 8 hours so far over 2 weeks trying to get the UI to be decent and this solved all my problems in about 30 mins. Many thanks!
@thecoolguy9364
@thecoolguy9364 3 жыл бұрын
10:23 The "Yay" made me smile
@onlywatch8417
@onlywatch8417 6 жыл бұрын
Verry good tutorial for begginers. Nice work ;)
@emeralaxy850
@emeralaxy850 5 жыл бұрын
Ok, you are now my favourite KZfaqr, EVERY. SINGLE. VIDEO, on this messed up my game with so many errors and now you fixed it, thank you so much
@shonkylovesgaming1766
@shonkylovesgaming1766 6 жыл бұрын
Your tutorials are really awesome and easy to understand ! Keep it up ! You encourage alot.
@elizabethcstudios8703
@elizabethcstudios8703 3 жыл бұрын
Thanks for everything you have done man. You're really helping me through college and its sad to see you leave. just know you will always be in our hearts.
@m0dd3dtut0rials5
@m0dd3dtut0rials5 2 жыл бұрын
im in middle school lol
@gatelyw4709
@gatelyw4709 2 жыл бұрын
@@m0dd3dtut0rials5 alright and?
@youbinwang1205
@youbinwang1205 2 жыл бұрын
Here are some tips while using unity 2021+ 1. Can't press the button? Please make sure you also add the "EventSystem" Object in your new scene. (just copy it from your old scene) 2. SetActive(false) makes object never called again? Try to use: pauseMenuUI.transform.localScale = new Vector3(0, 0, 0); instead, then SetActive(true) is: pauseMenuUI.transform.localScale = new Vector3(1, 1, 1); In the start then add: pauseMenuUI.transform.localScale = new Vector3(0, 0, 0); Remember to active PauseMenu before you start the game. 3. mouse locked? Add in Ruseum: Cursor.lockState = CursorLockMode.Locked; Add in Pause: Cursor.lockState = CursorLockMode.None; Hopefully it can help you :)
@wummii
@wummii 2 жыл бұрын
Thanks ! What do you mean by put pauseMenuUi in start? Like a void Start or in the beggining of the class?
@BlurryEyedStargazer
@BlurryEyedStargazer 2 ай бұрын
Oh my gosh thank you! I am working on a project for college and I couldn't figure out for the life of me why the buttons couldn't be clicked and were not changing shade when hovered over or clicked. Really appreciate it that fixed my problem!
@dunderguy
@dunderguy 27 күн бұрын
ty bro
@indigoakaben
@indigoakaben 2 жыл бұрын
Your tutorials are simply the best. They always work; I am never confused; you explain very clearly. Me am happy.
@RemiStorms
@RemiStorms 6 жыл бұрын
Looking forward to the video with the story that started all !!! Kudos, great channel !
@hamzahahmad1670
@hamzahahmad1670 6 жыл бұрын
Great stuff as always. If you take requests, can you please make a tutorials explaining Quaternions and their functions or maybe event triggers? Thanks
@yuvaldamti973
@yuvaldamti973 3 жыл бұрын
Thank you so much! I'm in 2020 participating in the game jam you host and your tutorials are saving me again and again every time I make mistakes/want to add stuff I don't know how
@thecannedbean9635
@thecannedbean9635 3 жыл бұрын
bruh me too
@nagybalint1474
@nagybalint1474 3 жыл бұрын
still amazing as always its been 3 years yet this is still very helpful
@shay-170
@shay-170 2 жыл бұрын
wow 3 years later and your tutorials are still so helpful!
@casachezdoom2588
@casachezdoom2588 3 жыл бұрын
One slight issue you might encounter as I did, is that if you go from your pause menu to the main menu and then launch your game, if you press escape it will do nothing the first time because the game is still considered "GameIsPaused = true" so add "GameIsPaused = false;" to the beginning of LoadMenu()
@torn2668
@torn2668 2 жыл бұрын
I know you commented this a year ago but thanks so much for the helpful tip.
@casachezdoom2588
@casachezdoom2588 2 жыл бұрын
@@torn2668 Glad it was helpful "in the future" :)
@atiqbhai8360
@atiqbhai8360 Жыл бұрын
🏮
@junglejim6674
@junglejim6674 Жыл бұрын
you could also consider creating an awake method where you set both the time scale back to 1, and the isPaused boolean back to false, so when you're loading a new scene it will automatically adjust it, so you don't have to change the functionality of your methods.
@Mucky_Muck
@Mucky_Muck Жыл бұрын
@@junglejim6674 Thanks. What the guy above said didn't work, but your solution did. Now my game is not paused when I press play from main menu.
@uasoni...
@uasoni... 4 жыл бұрын
I literally paused the video at 10:04 and then spent basically 2 hours of my life trying to figure out why everything was being weird. I learnt my lesson.
@mattqson122
@mattqson122 5 жыл бұрын
I just connect to youtube to check for a video in pause menu and start menu thanks so much for those and all the other tutorial video. So much quality 1000 time thank you Brackeys!
@blush5868
@blush5868 2 жыл бұрын
Thanks for these videos, you are always to the point and very easy to follow! Subscribed
@christinaeneroth675
@christinaeneroth675 5 жыл бұрын
You can make a Quit button that functions in the editor to, by making it end play mode. public void Quit() { #if UNITY_EDITOR UnityEditor.EditorApplication.isPlaying = false; #else Application.Quit(); #endif }
@NickFarrow
@NickFarrow 4 жыл бұрын
I had a little issue with Unity 2017 ended up using this the code below. Hope this helps someone. public void QuitGame(){ Debug.Log ("You have quit the game"); if (UnityEditor.EditorApplication.isPlaying == true) { UnityEditor.EditorApplication.isPlaying = false; } else { Application.Quit (); } }
@AAboardCo
@AAboardCo 4 жыл бұрын
Nick Farrow it did thank you!
@explior6558
@explior6558 4 жыл бұрын
@@NickFarrow thank you, that is really cool!
@vertex_frazix2988
@vertex_frazix2988 3 жыл бұрын
KING
@star-devil9157
@star-devil9157 3 жыл бұрын
@@aurich172 thanks it worked for me 😍😍😍❤❤❤
@wokarol
@wokarol 6 жыл бұрын
Can you make a tutorial about custom input manager with ability to bind keys runtime, and with support for multiple local players?
@charliebrown3118
@charliebrown3118 6 жыл бұрын
awesome vid! very helpful, and is explained neatly, good job man
@rayaneben
@rayaneben 6 жыл бұрын
Great tutorial, really well explained !
@Superbbsuper
@Superbbsuper 5 жыл бұрын
Was stuck wondering this for a bit cuz im a newb but TIP if your pause UI is there at the start of your game dont forget to disable your pausemenu within unity inspector. thats why we have the getkeydown for esc, to re-enable it....I feel dumb lol
@VictoriaStobbie
@VictoriaStobbie 5 жыл бұрын
I don't know why Brackey didn't run into this problem too, but in order to not start the game paused you do: void Start () { PausePanel.SetActive(false); }
@trystan8011
@trystan8011 5 жыл бұрын
OnceThereWasAPageWithAReallyLongAssNameAndNowYouAreLookingAtAChannelWithAReallyLongName! Thanks I just finished and I had the same problem it helped
@VictoriaStobbie
@VictoriaStobbie 5 жыл бұрын
@@trystan8011 No way, really. Well I'm glad it helped mate. And good luck to you and your game making journey.
@trystan8011
@trystan8011 5 жыл бұрын
OnceThereWasAPageWithAReallyLongAssNameAndNowYouAreLookingAtAChannelWithAReallyLongName! Thanks for the reply and also thanks for the help!
@andrewm6984
@andrewm6984 5 жыл бұрын
for me PausePanel does not exist in the current context. Do I rename it to whatever my pause menu is called?
@Ydwin
@Ydwin 5 жыл бұрын
Or you can disable the PauseMenu in the inspector maybe ?
@BattleAngelSound
@BattleAngelSound 6 жыл бұрын
Man you're the BOSS! :D Thanks to you my uni project that is audio focused will be much much more than just basic '4 objects' level :)
@klippok
@klippok 6 жыл бұрын
Thanks! Most helpful lessons for unity beginner in youtube.
@Demon.Immortalis
@Demon.Immortalis Жыл бұрын
for the Resume() function use this in the beginning: Cursor.visible = false; Cursor.lockState = CursorLockMode.Locked; for the Pause() function use this in the end: Cursor.lockState = CursorLockMode.None; Cursor.visible = true; your welcome ;)
@andreezz
@andreezz Жыл бұрын
UR A GOAT TYYYYYYYYYYYYYYYYYYYYYYY
@muscatalexj
@muscatalexj 11 ай бұрын
You beautiful man. Saved me so much frustration.
@Demon.Immortalis
@Demon.Immortalis 11 ай бұрын
@@muscatalexj ofc ur welcome :)
@GOF313
@GOF313 6 ай бұрын
@@Demon.Immortalis Thank you!
@leomrenders9150
@leomrenders9150 3 жыл бұрын
I was torn on the whole animation part, as setting the time scale to 0 would technically also limit animation, but to see there's a drop down that sets the animations time to "unscaled" is a useful piece of knowledge
@torn2668
@torn2668 2 жыл бұрын
Yes, you said you were I.
@BenGodot
@BenGodot Жыл бұрын
How do you do this?
@freemanfitness3064
@freemanfitness3064 3 жыл бұрын
Thank you for this tutorial! Very useful and looks great too!
@birderwang
@birderwang 5 жыл бұрын
Very detailed and great explanation, thanks a lot.
@Nox__
@Nox__ 4 жыл бұрын
I used it to also make a ZA WARUDO sound effect when clicking on pause just for fun
@dynamicsketch
@dynamicsketch 4 жыл бұрын
That's awesome.
@pitbull2498
@pitbull2498 3 жыл бұрын
Who are you, so wise in the ways of science
@h.k654
@h.k654 3 жыл бұрын
@@pitbull2498 An anonymous genius.
@eddybplayz4801
@eddybplayz4801 3 жыл бұрын
i dislike the anime
@Nox__
@Nox__ 3 жыл бұрын
@@eddybplayz4801 why? You cant blame me every person has its own likes
@SchematicGV
@SchematicGV 3 жыл бұрын
Brackeys: makes a start and pause menu tutorial free Other people: Pay $500 to learn to make a start menu
@MarkoBrainz
@MarkoBrainz 3 жыл бұрын
not really..
@lr514
@lr514 3 жыл бұрын
Exaggeration in order to make a point to make something funnier
@bonzodimduly
@bonzodimduly 2 жыл бұрын
your logo has my logo in it
@honorsoftentertainment484
@honorsoftentertainment484 2 жыл бұрын
There's other free pause tutorials, and better (not all though). Also, notice how many people have problems with the code and setup? It appears to work in the video but does not work with out a few fixes and modifications, so that's why some people pay for better info... "there's a reason why it's free."
@amanpreetchander7386
@amanpreetchander7386 2 жыл бұрын
Thank you so much Brackeys. Very well explained 🙂
@BrendixQueenWN
@BrendixQueenWN 6 жыл бұрын
Thaaaaaaank you so much for this tutorial. Just what I was searching!!!
@isimplydonthaveaname9994
@isimplydonthaveaname9994 3 жыл бұрын
YES YEEESSS A PAUSE MENU WHAT I NEED YEEEEEEESSSS thank you brackeys Also text mesh pro is already in my unity so I don't need to download it Haha sublime text 3 go brrrrrrrrr
@nhggr
@nhggr 3 жыл бұрын
XDDD
@tharaniv6267
@tharaniv6267 3 жыл бұрын
is the resume button the game scene works
@isimplydonthaveaname9994
@isimplydonthaveaname9994 3 жыл бұрын
@@tharaniv6267 I gave up, haven't implemented it
@aleksp8768
@aleksp8768 4 жыл бұрын
This was very helpful but when I exported the game as a build, the pause menu didn't work. Do you have any idea what might've caused that? Also, the pause menu worked perfectly in Unity Edit: Ok I think I found the problem, I was using FixedUpdate instead of Update (idk why I must've gotten confused with another tutorial)
@Pomyluna99
@Pomyluna99 4 жыл бұрын
This helped me out a lot. Thank you very much!
@bonfaceosuka
@bonfaceosuka 3 жыл бұрын
Thank you so much Brackeys , it worked perfectly
@syclonusmusic
@syclonusmusic 6 жыл бұрын
hi can you make a video for unity UI about LOAD / SAVE saving music and player positions in the game ? thanks
@Junior.Nascimento
@Junior.Nascimento 6 жыл бұрын
up
@thegamingcobra1
@thegamingcobra1 6 жыл бұрын
Saving all the game data such as the score. money system, players position, inventory
@akashverma4280
@akashverma4280 6 жыл бұрын
Pausing music using IEnumerations is such a pain in ass. Looking for a way to do it...
@theairaccumulator7144
@theairaccumulator7144 6 жыл бұрын
+DJ Syclonus Try using PlayerPrefs(saves stuff in registry(okly secure and simple to use)) or text files(saves stuff in simple txt files(really hackable and super easy to use)) or custome binary files(saves stuff in custom binary complex files(unhackable and really hard to set up but easy to use afterwords)). You can search for one or all of those options on the internet to see how they work and how to setup and use them.
@lostconflict9369
@lostconflict9369 6 жыл бұрын
Why is everyone here so narrow, everyone's asking for something but i doubt they even searched for it, if they did. They wouldn't be asking so desperately, here are some links, use them if you want. And if you don't, it's on you, since no one cares. kzfaq.info/get/bejne/qb2Hjb1z3rzanIk.html kzfaq.info/get/bejne/bNycZKyKstbbhoU.html
@ihavecreatism9776
@ihavecreatism9776 4 жыл бұрын
First, thanks for your help. Second... I tried to use this method with the "Cancel" Axis, but its somehow connected with time.DeltaTime... That means, i cant unpause it.
@botcomborderreaching3518
@botcomborderreaching3518 Жыл бұрын
You are god. I spend 2 hours trying to spawn buttons in my game, but I really didnt know that I cant just create them and just deactivate them. Thank you so much man!!!!!!!
@Crashlikag6
@Crashlikag6 2 жыл бұрын
I was confused with how to make my game over screen and this helped soooo much thank u brackeys
@linshu6141
@linshu6141 4 жыл бұрын
If u also have the "2D Shooting in Unity (Tutorial)" from Brackeys in ur game just change the "void Start()" method in the "Bullets" script to this: void Start() { rb.velocity = transform.right * speed; if (PauseMenu.GameIsPaused) { Destroy(gameObject); } } Now u don't stack up ur bullets if clicking in the pause menu.
@cubyte4640
@cubyte4640 3 жыл бұрын
Notice that if you stop time with Time.timeScale = 0f, it doesn't run back if you reload scene so if you are creating a button for restart then make sure to run the time in Start() by using Time.timeScale = 1f
@user-sg1kc5jx8c
@user-sg1kc5jx8c 3 жыл бұрын
Thanks
@cubyte4640
@cubyte4640 3 жыл бұрын
@@user-sg1kc5jx8c No problem, I am glad my comment helped someone
@TheFuturistPodcast
@TheFuturistPodcast 3 жыл бұрын
I wish that one day you will comeback with more tutorials. You are the GOAT!
@IkeVoodoo
@IkeVoodoo 4 жыл бұрын
Brackeys is the best! Anybody who dislikes just dont know how to fix errors that they encounter and expect that brackeys told them something fake, somethimes just try yourself in fixing, it is a great way to learn :D
@flashgames1273
@flashgames1273 6 жыл бұрын
Already know this shit, but still watching... :D
@PingDonger
@PingDonger 6 жыл бұрын
Flash Games wanna work on a game?
@flashgames1273
@flashgames1273 6 жыл бұрын
sure! add me on discord: mihx #2422
@flashgames1273
@flashgames1273 6 жыл бұрын
*1.* really basic c# programming *2.* Intermediate c# + UnityEngine *3.* Unity - playing around *+4.* Official/Brackeys Unity tutorials *5.* first simple game *6.* Unity Answers/Forum/Google - for problems while dev. *7*. However i have no official education with programming/Unity. *8.* Learn as you develop. * important part is the basic c# and UnityEngine... * And dont give up. never. it will look difficult but it is not.
@Spence.1
@Spence.1 4 жыл бұрын
My Pause Menu working 100% as intended from the video: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class PauseMenu : MonoBehaviour { public static bool GameIsPaused = false; public GameObject pauseMenuUI; void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { if (GameIsPaused) { Resume(); } else { Pause(); } } } public void Resume () { pauseMenuUI.SetActive(false); Time.timeScale = 1f; GameIsPaused = false; } void Pause () { pauseMenuUI.SetActive(true); Time.timeScale = 0f; GameIsPaused = true; } public void LoadMenu() { Time.timeScale = 1f; SceneManager.LoadScene("Menu"); } public void QuitGame() { Debug.Log("Quitting game..."); Application.Quit(); } }
@facyual9061
@facyual9061 4 жыл бұрын
"some heros don't wear capes"
@theibraus
@theibraus 4 жыл бұрын
@@facyual9061 wear*
@facyual9061
@facyual9061 4 жыл бұрын
@@theibraus fuck
@xDeFc0nx
@xDeFc0nx 4 жыл бұрын
dosntr work
@donaldcheese8174
@donaldcheese8174 4 жыл бұрын
thank you so much :)
@pavanpatel9686
@pavanpatel9686 5 жыл бұрын
Thank you sir for all the videos.it helped me a lot thanks once again.
@blackphant8399
@blackphant8399 3 жыл бұрын
this video contain so many new information for me. thanks mate, u are awesome!
@vadympetruk3449
@vadympetruk3449 6 жыл бұрын
Thanks a lot! Pls make a video about RectTransform management (how to create game UI for 'any' resolution)
@AlmostM
@AlmostM 6 жыл бұрын
+1 to this. I sort of understand how the UI anchors and scaling modes work, but I still get confused about how I should be using them.
3 жыл бұрын
If you are having issues with you Player teleporting on load, make sure that “Auto Sync Transforms” (Edit->Project Settings->Physics) is enabled :)
@sedem_quame
@sedem_quame 2 жыл бұрын
wow, this is super helpful. i was experiencing the problem in android build, and I thought it was a problem with my scripting since I assed some preprocessor directives, for mobile.
@storiesfromthedarkness3631
@storiesfromthedarkness3631 5 ай бұрын
This video is working 7 years later. Thank you vey much!!!
@spartanh1438
@spartanh1438 4 жыл бұрын
thank you these are great videos im learning a lot
@7oledit399
@7oledit399 3 жыл бұрын
Who is here after sad announcement?
@teu2387
@teu2387 3 жыл бұрын
Me
@user-cq8xj7ck2u
@user-cq8xj7ck2u 3 жыл бұрын
you
@santibalbuena7730
@santibalbuena7730 3 жыл бұрын
I want to like but the number is too nice Edit Why would someone move it away from 69???
@santibalbuena7730
@santibalbuena7730 3 жыл бұрын
The number is now 94, I have liked it to 95
@echo9dev
@echo9dev 3 жыл бұрын
Everyone
@MostafaTElmansoury
@MostafaTElmansoury 6 жыл бұрын
Please make a video on how to map controller support.
@remysadventures-official8357
@remysadventures-official8357 6 жыл бұрын
Upvote this!
@Avi3ator
@Avi3ator 6 жыл бұрын
Unity already got that implemented, just use the Input manager
@PressTech
@PressTech 6 жыл бұрын
Big Man helping us as always
@SlayerFoxX
@SlayerFoxX 5 жыл бұрын
Dude damn you for doing all these helpful tutorials
@maiskorrel
@maiskorrel 5 жыл бұрын
Amazing tutorial! as Always! Unfortunately at 7:28 when I try to do this nothing happens the pitch just stays the same while in the pausemenu.
@_sidrs
@_sidrs 4 жыл бұрын
have you figured it out how to fix it ?
@bodewilson7522
@bodewilson7522 3 жыл бұрын
Hi! Take a look if you have a script that blocks the mouse, this caused my button not to work or the highlight to appear! I used another video of him where he teaches how to move characters in first person and there he used to lock the mouse, when I commented on this line the menu worked as it should ...
@bodewilson7522
@bodewilson7522 3 жыл бұрын
@@_sidrs just to see my reply on how I fixed my problem
@_sidrs
@_sidrs 3 жыл бұрын
@@bodewilson7522 haha thanks man, I'll take a look at it.
@whereistheguru.
@whereistheguru. 2 жыл бұрын
Same problem ;( Did you manage to find a solution?
@jvcss
@jvcss 6 жыл бұрын
some day I will paytron you, thank you for all
@kondzio3500
@kondzio3500 3 жыл бұрын
did you patroen him? it was 3 years :D
@HappyMatt12345
@HappyMatt12345 4 жыл бұрын
Still the only Unity tutorial channel I ever manage to properly learn stuff from.
@kirikirikiriklaus8935
@kirikirikiriklaus8935 2 жыл бұрын
Thanks man your viedos are great
@et9296
@et9296 3 жыл бұрын
If anyone is having trouble with the pause menu, and can not re-enable the menu one you resume, try moving the script to a different GameObject. I believe that if a GameObject is disabled, the scripts do not run, so if you put the script on the pause menu while it is disabled it will not call the function.
@meowmeowmeow8043
@meowmeowmeow8043 3 жыл бұрын
This saved me
@dofyto8622
@dofyto8622 Жыл бұрын
For those that is having problem with uniteractable button Make sure your Canvas habe Graphic Raycaster to the setting is default so you don't need to edit it at all you need to make sure that you give the scene a EventSystem -RightClick in your project where you usually add text/button -Then go to UI, EventSystem will be at the bottom of it
@sprinklesprink7192
@sprinklesprink7192 Жыл бұрын
thank you for saving me a lot of frustration
@lumine881
@lumine881 6 ай бұрын
Thank you so much !
@sup179
@sup179 2 ай бұрын
Thanks a LOT!! you helped me save my semester
@MicMan2710
@MicMan2710 5 жыл бұрын
Very helpful. Thank you!
@adhishumarani8567
@adhishumarani8567 4 жыл бұрын
It worked dude!! Thanks
@connorbrush5626
@connorbrush5626 4 жыл бұрын
For anyone having an issue with your player not moving and overall your game not moving when you load back to your game after quitting once before (loading the same scene twice): In the LoadMenu() method, before loading the menu scene, set the time scale back to 1f using Time.timeScale = 1f; Otherwise, when you load back in, the timeScale remains 0f and nothing works until pausing and unpausing, which wouldn't be good. Edit: Also set the GameIsPaused variable to false before loading the menu scene, that way you don't have to double-tap escape when you go back in because the game thinks it is paused.
@shuban_sena840
@shuban_sena840 2 жыл бұрын
thanks it helped a lot
@KayleeVRC
@KayleeVRC 3 жыл бұрын
It works in the Main Menu, but when i open the game it doesn't let me interact with the buttons anymore .-.
@FirroLP
@FirroLP 6 жыл бұрын
Hey Brackeys, really enjoy these UI Videos since I have to do many of them for my kind of games and I wanted to ask if you could make some tutorial on how to make a UI responsive for different screen sizes and more specifically Aspect Ratios. Most resources I find and people I ask are not as good as they could be. Much love to you and always happy to learn from you
@junkmatt7126
@junkmatt7126 6 жыл бұрын
i'm learning so much thx
@gamemaker5459
@gamemaker5459 4 жыл бұрын
when i try to click resume button, entire screen is freezing and cursor become invisible(for menu and quit also). What to do?
@chiaramele3558
@chiaramele3558 3 жыл бұрын
Did u solve it?
@drix8113
@drix8113 6 жыл бұрын
*notification for brackeys video* , *sees pause menu title* oh heeeelllllll yeeeeaaahh brackeys lets gooo
@Alexlinnk
@Alexlinnk Жыл бұрын
Works like a charm
@babarasul680
@babarasul680 6 жыл бұрын
Man, you are such a solid dude. Thanks a bunch.
@captainufo4587
@captainufo4587 6 жыл бұрын
Savegame tutorial in Unity? I know it's not a topic that leads to an easy and quick video, but I have yet to find a tutorial that explains it in a non-messy way.
@brendocbb
@brendocbb 6 жыл бұрын
Try to look for playerprefs
@elevenshipgames2826
@elevenshipgames2826 6 жыл бұрын
brendocbb OH GOD PLEASE NO DON"T SAY THAT
@captainufo4587
@captainufo4587 6 жыл бұрын
I was thinking more about something on the line of a smart way to serialize data and even more importantly a smart way to structure the whole game so that you don't have to chase data that needs to be serialized around dozens of script components.
@brendocbb
@brendocbb 6 жыл бұрын
Have you seen this? unity3d.com/pt/learn/tutorials/topics/scripting/serialization-and-game-data It may help you
@lostconflict9369
@lostconflict9369 6 жыл бұрын
Cristian Baldi Another person who simply hasn't searched for what they need, or just doesn't know how to search. kzfaq.info/get/bejne/qb2Hjb1z3rzanIk.html kzfaq.info/get/bejne/bNycZKyKstbbhoU.html There you go.
@hovhadovah
@hovhadovah 5 жыл бұрын
Since the flag is a static boolean, you'll need to set it to false when you load the menu. Otherwise, when you load the menu and re-load the game, you won't be able to bring up the pause menu.
@leanforever7814
@leanforever7814 2 жыл бұрын
save me
@tech-boy334
@tech-boy334 2 жыл бұрын
Nah not for me atleast, maybe its a bug on your side
@RaasiqShaikh98
@RaasiqShaikh98 Жыл бұрын
Hey I am onlu able to pause once. once I close the Pause menu it doesnt open again, what do I do ?
@awskhanfar4743
@awskhanfar4743 4 жыл бұрын
Thanks Brackeys u so awesome and always have good tutorials :)
@jeffhan4119
@jeffhan4119 6 жыл бұрын
Awesome! This guy should deserve more views.
@chrisdanikas7918
@chrisdanikas7918 6 жыл бұрын
best human alive..
@timothygao9442
@timothygao9442 6 жыл бұрын
HI Braceys! You have tons of great videos, but where did you learn all of these skills in the beginning? Please make a video on this topic
@lostconflict9369
@lostconflict9369 6 жыл бұрын
Timothy Gao In the video he says he going to make a video on how he started out and what it was like for him in the beginning.
@timothygao9442
@timothygao9442 6 жыл бұрын
Thanks
@TheWizard991
@TheWizard991 Жыл бұрын
These videos are pure gold. I've made a game called Jumpy Cube.
@SreyRc
@SreyRc 4 жыл бұрын
Humanity is blessed to have you. Thank you so much!
How to MAKE YOUR GAME LOOK GOOD!
13:02
Brackeys
Рет қаралды 587 М.
7 DEVS Make a GAME without COMMUNICATING! (centipede edition)
17:16
Blackthornprod
Рет қаралды 1 МЛН
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 90 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 107 МЛН
Why Do Video Game Studios Avoid Blender?
6:49
The Cantina
Рет қаралды 379 М.
How to Create a PAUSE MENU in Unity ! |  UI Design Tutorial
8:32
Rehope Games
Рет қаралды 26 М.
The right way to pause a game in Unity
9:09
Game Dev Beginner
Рет қаралды 56 М.
6 Minute PAUSE MENU Unity Tutorial
6:09
BMo
Рет қаралды 110 М.
Brackeys Game Jam 2020.2 - BEST GAMES!
11:31
Brackeys
Рет қаралды 542 М.
The Future of Game Development
8:58
Brackeys
Рет қаралды 1,2 МЛН
So you want to make a Game Engine!? (WATCH THIS before you start)
14:39
Giant Sloth Games
Рет қаралды 274 М.
I Wish I Had Known This Before I Started Unity Game Development...
11:11
How To Make a Simple Pause Menu in UNITY
4:07
LewisGamer
Рет қаралды 791
HOW TO GAME JAM!
9:01
Brackeys
Рет қаралды 267 М.
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 90 МЛН