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. 🙏🙏🙏
@BlowFlow0411 ай бұрын
tu eres tonto oque
@siva61376 жыл бұрын
Who dislikes these videos? They're bloody free lessons.
@dfhdgsdcrthfjghktygerte6 жыл бұрын
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!
@siva61376 жыл бұрын
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.
@rodentlover1006 жыл бұрын
Russian man take me by the hand lead me to the land with words I don't understand
@rodentlover1006 жыл бұрын
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_Fox6 жыл бұрын
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.
@Ice_ZOMBIES2 жыл бұрын
That sad feeling when you discover Brackey and his videos after he has already left KZbin... I feel like I just missed a legend passing by. God damn
@thebvfreak Жыл бұрын
@McTaterB same tho ;-;
@1alexisfan4 ай бұрын
He's back!!!
@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 Жыл бұрын
Mine is just not working I dont get the game object?
@achintyacancode35433 жыл бұрын
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!
@connorlewis9843 жыл бұрын
You're a LEGEND Wumpus! Thoss Discord devs taught you well!
@nowlog5022 жыл бұрын
save scene with your menu panel as inactive and it will work as in the video
@ItssVenom2 жыл бұрын
Thank you I was looking for a comment giving an explanation to this issue haha
@s1moq1082 жыл бұрын
can someone explane me better i coudnt find that button
@sausagequeen2 жыл бұрын
@@ItssVenom it says it in the video 😐
@christianthompson18395 жыл бұрын
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_-pn2og3 жыл бұрын
i know menus are so hard!
@alekosthecrow4 жыл бұрын
2:10 Imagine having to add a shadow component to your text ~This post was made by the TMP gang
@joevent4 жыл бұрын
Im using Unity 5.6.7f, why don't I have text mesh pro?
@alekosthecrow4 жыл бұрын
@@joevent you need to import it
@pitbull24984 жыл бұрын
@@Plazmin hey stop it text mesh better ~This post was made by the TMP gang
@lightninbolt9863 жыл бұрын
@@joevent Imagine having to import it. ~this post is by latest unity with inbuilt TMP gang
@bonzodimduly3 жыл бұрын
i use custom fonts and cant use TMP with them
@jakethewoz6 жыл бұрын
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!
@koseki_stuff3 жыл бұрын
I am watching this at 1:00 AM, slowly losing my sanity, but thanks tho REST IN PEPPORONIS BRACKEYS 2012 - 2020
@michaelarteaga26913 жыл бұрын
REST IN PEPPORONIS
@shabnamshekhaji55403 жыл бұрын
REST IN PEPPERONIS
@taboret32733 жыл бұрын
REST IN PEPPOROINIS
@coIlgnu3 жыл бұрын
REST IN PAINIS
@Branzoaica3 жыл бұрын
happens to the most of us
@casachezdoom25883 жыл бұрын
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()
@torn26682 жыл бұрын
I know you commented this a year ago but thanks so much for the helpful tip.
@casachezdoom25882 жыл бұрын
@@torn2668 Glad it was helpful "in the future" :)
@atiqbhai83602 жыл бұрын
🏮
@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 Жыл бұрын
@@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.
@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 Жыл бұрын
UR A GOAT TYYYYYYYYYYYYYYYYYYYYYYY
@muscatalexj Жыл бұрын
You beautiful man. Saved me so much frustration.
@Demon.Immortalis Жыл бұрын
@@muscatalexj ofc ur welcome :)
@GOF3138 ай бұрын
@@Demon.Immortalis Thank you!
@VictoriaStobbie5 жыл бұрын
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); }
@trystan80115 жыл бұрын
OnceThereWasAPageWithAReallyLongAssNameAndNowYouAreLookingAtAChannelWithAReallyLongName! Thanks I just finished and I had the same problem it helped
@VictoriaStobbie5 жыл бұрын
@@trystan8011 No way, really. Well I'm glad it helped mate. And good luck to you and your game making journey.
@trystan80115 жыл бұрын
OnceThereWasAPageWithAReallyLongAssNameAndNowYouAreLookingAtAChannelWithAReallyLongName! Thanks for the reply and also thanks for the help!
@andrewm69845 жыл бұрын
for me PausePanel does not exist in the current context. Do I rename it to whatever my pause menu is called?
@Ydwin5 жыл бұрын
Or you can disable the PauseMenu in the inspector maybe ?
Cause it's Brackeys. You know it's going to be a good tutorial.
@lbstester6 жыл бұрын
blog not found
@fusion6106 жыл бұрын
blog has been removed
@bobsagget8235 жыл бұрын
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
@kmonty20095 жыл бұрын
@@bobsagget823 I just did this and it works fine. Not sure why you are running into errors but mine is fine.
@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.
@MohanABK6 жыл бұрын
Man, you deserve way more subscribers. This is legit hard-earned, good quality, perfect explanation pace, learning content.
@thecoolguy93644 жыл бұрын
10:23 The "Yay" made me smile
@cubyte46404 жыл бұрын
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
@ПетърИлков-ч8ц4 жыл бұрын
Thanks
@cubyte46404 жыл бұрын
@@ПетърИлков-ч8ц No problem, I am glad my comment helped someone
@leomrenders91503 жыл бұрын
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
@torn26682 жыл бұрын
Yes, you said you were I.
@BenGodot Жыл бұрын
How do you do this?
@Nox__4 жыл бұрын
I used it to also make a ZA WARUDO sound effect when clicking on pause just for fun
@dynamicsketch4 жыл бұрын
That's awesome.
@pitbull24984 жыл бұрын
Who are you, so wise in the ways of science
@CodexCornerGames4 жыл бұрын
@@pitbull2498 An anonymous genius.
@eddybplayz48014 жыл бұрын
i dislike the anime
@Nox__4 жыл бұрын
@@eddybplayz4801 why? You cant blame me every person has its own likes
@Spence.14 жыл бұрын
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(); } }
@facyual90614 жыл бұрын
"some heros don't wear capes"
@theibraus4 жыл бұрын
@@facyual9061 wear*
@facyual90614 жыл бұрын
@@theibraus fuck
@xDeFc0nx4 жыл бұрын
dosntr work
@donaldcheese81744 жыл бұрын
thank you so much :)
@elizabethcstudios87034 жыл бұрын
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.
@m0dd3dtut0rials53 жыл бұрын
im in middle school lol
@gatelyw47092 жыл бұрын
@@m0dd3dtut0rials5 alright and?
@linshu61414 жыл бұрын
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.
@yuvaldamti9734 жыл бұрын
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
@thecannedbean96354 жыл бұрын
bruh me too
@Alexlinnk Жыл бұрын
Works like a charm
@syclonusmusic6 жыл бұрын
hi can you make a video for unity UI about LOAD / SAVE saving music and player positions in the game ? thanks
@Junior.Nascimento6 жыл бұрын
up
@thegamingcobra16 жыл бұрын
Saving all the game data such as the score. money system, players position, inventory
@akashverma42806 жыл бұрын
Pausing music using IEnumerations is such a pain in ass. Looking for a way to do it...
@theairaccumulator71446 жыл бұрын
+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.
@lostconflict93696 жыл бұрын
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. kzbin.info/www/bejne/qYi6i414rruporc kzbin.info/www/bejne/bKfPYnyPgtWqjLM
@storiesfromthedarkness36318 ай бұрын
This video is working 7 years later. Thank you vey much!!!
@et92964 жыл бұрын
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.
@meowmeowmeow80433 жыл бұрын
This saved me
@wushu72944 жыл бұрын
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.
@Superbbsuper5 жыл бұрын
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
@brickbot2.0383 жыл бұрын
I almost understood this, and I am completely new to Unity. Most other tutorials are not this clear. Great job!
@friesandcats19193 жыл бұрын
yea so my buttons arent workingtho what did i do wrong heeelp
@brickbot2.0383 жыл бұрын
@@friesandcats1919 Emphasis on *Almost* understood this. Sorry, I can't help you. :P Try watching the video again, and making sure to do everything exactly as he does.
@friesandcats19193 жыл бұрын
@@brickbot2.038 hey no worries, I figured it out, it was a problem having to do with my cursor being locked, it’s fixed now
@cmonbruh637 Жыл бұрын
@@friesandcats1919 I know you said this a year ago but can you help me? i think im having the same problem.
@SchematicGV4 жыл бұрын
Brackeys: makes a start and pause menu tutorial free Other people: Pay $500 to learn to make a start menu
@MarkoBrainz3 жыл бұрын
not really..
@lr5143 жыл бұрын
Exaggeration in order to make a point to make something funnier
@bonzodimduly3 жыл бұрын
your logo has my logo in it
@WibleWobble2 жыл бұрын
best unity tutorials i have seen. Beginner friendly, and cover like basically everything you need to make a really good game
@youbinwang12052 жыл бұрын
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 :)
@HallieTheHero5 ай бұрын
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!
@dunderguy3 ай бұрын
ty bro
@dragonanimations0748Ай бұрын
When you say to add "pauseMenuUI.transform.localScale = new Vector3(0, 0, 0); " in the start where exactly does that mean? Is that to be applied before the void update function? Also thank you so much for this,, it's extremely helpful^^
@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!!!!!!!
@OilRacki6 жыл бұрын
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.
@olegfrolovdesign6 жыл бұрын
Лучший канал с уроками по Unity! Спасибо большое!
@shay-1702 жыл бұрын
wow 3 years later and your tutorials are still so helpful!
@connorbrush56264 жыл бұрын
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_sena8402 жыл бұрын
thanks it helped a lot
@tehpitchoo52425 жыл бұрын
So for everyone who want's to make a mobile pause button is very simple you just change "void Pause()" to "public void Pause()" and you simply just drag the Canva's to 'On Click' page on your Pause button and as a Function you go to PauseMenu>pause simple as that
@jj_-_58424 жыл бұрын
hello u seem to know something about programming when i change void resume to public voide resume it says the modifier "public" is not valid for this item it also says it when i type public void loadmenu and public void quitgame
@gory_t42932 жыл бұрын
If anyone has a problem with buttons and time.timescale= 0; I found a solution, my problem was with (update mode), so.. 1/in the script add (using UnityEngine.InputSystem) 2/in method (pause game) u should add (InputSystem.settings.UpdateMode = InputSettings.UpdateMode.ProcessEventsInDynamicUpdate;), 3/in method(resume game) add (InputSystem.settings.UpdateMode = InputSettings.UpdateMode.ProcessEventsInFixedUpdate;) I don't know if this is the right way to solve it but it works perfectly on play mode:).
@angelsantillan-gil42014 жыл бұрын
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.
@explior65584 жыл бұрын
Thank you so much Brackeys, that helped a lot as usual!
@thepithief37006 жыл бұрын
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!
@frazebean51174 жыл бұрын
If you guys have an issue in which restarting the level results in you needing to press 'ESC' twice to bring up the pause menu, remove 'static' in the first line of the code: public static bool GameIsPaused = false; End result would be: public bool GameIsPaused = false;
@28uwaisalqarni792 жыл бұрын
thanks :D
@Ka279 ай бұрын
Thank you
@rajbirsingh27714 жыл бұрын
they are the best unity lessons on unity . they are much better than any paid courses
@hovhadovah5 жыл бұрын
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.
@leanforever78142 жыл бұрын
save me
@tech-boy3342 жыл бұрын
Nah not for me atleast, maybe its a bug on your side
@RaasiqShaikh982 жыл бұрын
Hey I am onlu able to pause once. once I close the Pause menu it doesnt open again, what do I do ?
@TheWizard9912 жыл бұрын
These videos are pure gold. I've made a game called Jumpy Cube.
@isimplydonthaveaname99944 жыл бұрын
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
@nhggr3 жыл бұрын
XDDD
@tharaniv62673 жыл бұрын
is the resume button the game scene works
@isimplydonthaveaname99943 жыл бұрын
@@tharaniv6267 I gave up, haven't implemented it
@mamut_chino24192 жыл бұрын
thanks brakeys you always save me
@HappyMatt123454 жыл бұрын
Still the only Unity tutorial channel I ever manage to properly learn stuff from.
@wokarol6 жыл бұрын
Can you make a tutorial about custom input manager with ability to bind keys runtime, and with support for multiple local players?
@SreyRc4 жыл бұрын
Humanity is blessed to have you. Thank you so much!
@hamzahahmad16706 жыл бұрын
Great stuff as always. If you take requests, can you please make a tutorials explaining Quaternions and their functions or maybe event triggers? Thanks
@indigoakaben3 жыл бұрын
Your tutorials are simply the best. They always work; I am never confused; you explain very clearly. Me am happy.
@arkandash58953 жыл бұрын
Use this if you have trouble with cursor lock and unlock mode. public void Resume() { pauseMenuUI.SetActive(false); Time.timeScale = 1f; GameIsPaused = false; Cursor.lockState = CursorLockMode.Locked; } void Pause() { pauseMenuUI.SetActive(true); Time.timeScale = 0f; GameIsPaused = true; Cursor.lockState = CursorLockMode.None; {
@iasonasntamatis69233 жыл бұрын
thank you thank you so much
@Bj-mz1yo3 жыл бұрын
THANK YOU SO MUCH!! 1 question though, ive been getting a problem where in the beggining of pressing play, the cursor is unlocked, while still being able to look around, and i have to click on the screen for it to lock. Do you know how to fix it?
@slushier.3 жыл бұрын
your a lifesaver
@MrHakai-mh1lb2 жыл бұрын
you're a god
@hazzyjc2 жыл бұрын
OMG THANK YOU SO MUCH
@nicholasfacciola66264 жыл бұрын
spent two hours on this problem and you fixed it in the first 40 seconds
@captainufo45876 жыл бұрын
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.
@brendocbb6 жыл бұрын
Try to look for playerprefs
@elevenshipgames28266 жыл бұрын
brendocbb OH GOD PLEASE NO DON"T SAY THAT
@captainufo45876 жыл бұрын
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.
@brendocbb6 жыл бұрын
Have you seen this? unity3d.com/pt/learn/tutorials/topics/scripting/serialization-and-game-data It may help you
@lostconflict93696 жыл бұрын
Cristian Baldi Another person who simply hasn't searched for what they need, or just doesn't know how to search. kzbin.info/www/bejne/qYi6i414rruporc kzbin.info/www/bejne/bKfPYnyPgtWqjLM There you go.
@emeralaxy8505 жыл бұрын
Ok, you are now my favourite KZbinr, EVERY. SINGLE. VIDEO, on this messed up my game with so many errors and now you fixed it, thank you so much
@MostafaTElmansoury6 жыл бұрын
Please make a video on how to map controller support.
@remysadventures-official83576 жыл бұрын
Upvote this!
@Avi3ator6 жыл бұрын
Unity already got that implemented, just use the Input manager
@maistrogaming79114 жыл бұрын
I miss u already why did have to do it...why😭...but as much I love u and respect u I respect what ever you do
@maiskorrel5 жыл бұрын
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.
@_sidrs4 жыл бұрын
have you figured it out how to fix it ?
@bodewilson75223 жыл бұрын
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 ...
@bodewilson75223 жыл бұрын
@@_sidrs just to see my reply on how I fixed my problem
@_sidrs3 жыл бұрын
@@bodewilson7522 haha thanks man, I'll take a look at it.
@whereistheguru.2 жыл бұрын
Same problem ;( Did you manage to find a solution?
@nagybalint14744 жыл бұрын
still amazing as always its been 3 years yet this is still very helpful
@Ocer.4 жыл бұрын
If you're having a problem with the cursor being locked in the middle of your screen so u cant click any buttons, just add this in the bottom of the Update function in your Mouse Look script *if(PauseMenu.GameIsPaused == true)* *{* *Cursor.lockState = CursorLockMode.None;* *}* *else if(PauseMenu.GameIsPaused == false) Cursor.lockState = CursorLockMode.Locked;* I just had this problem and wanted to help any beginners out if they have the problem too :))
@Ocer.3 жыл бұрын
@@vexe41 i literally just gave u the answer
@Ocer.3 жыл бұрын
@@vexe41 also literally stated thats why i commented
@Ocer.3 жыл бұрын
@@vexe41 no no no, no problem dude, if u are trying to put in the effort to make a game and succeeding u are on the way to a bigger brain than most
@chill48573 жыл бұрын
thank you now i can get back to making my karlson rip off game
@ibrohim94394 жыл бұрын
Brackeys said Awesome every new videos
@7oledit3994 жыл бұрын
Who is here after sad announcement?
@teu23873 жыл бұрын
Me
@user-cq8xj7ck2u3 жыл бұрын
you
@santibalbuena77303 жыл бұрын
I want to like but the number is too nice Edit Why would someone move it away from 69???
@santibalbuena77303 жыл бұрын
The number is now 94, I have liked it to 95
@bhavesh94593 жыл бұрын
i've made it to 99 LOL
@TheRandomYoYo3 жыл бұрын
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!
@flashgames12736 жыл бұрын
Already know this shit, but still watching... :D
@PingDonger6 жыл бұрын
Flash Games wanna work on a game?
@flashgames12736 жыл бұрын
sure! add me on discord: mihx #2422
@flashgames12736 жыл бұрын
*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.
@criskywalker172 жыл бұрын
If you have several Scenes, you make a prefab of it and it only works in the scene you created it you have to add UI-> EventSystem in each Scene and it would work perfectly!
@Leyfindrake Жыл бұрын
you are a lifesaver
@PhycoSerpentStudios3 жыл бұрын
Why doesn't the menu work anymore when you go to a new scene? I've even tried making a prefab of the canvas and I can't seem to figure out why it isn't working
@PhycoSerpentStudios3 жыл бұрын
Turns out, every scene needs an event system, which is required for events such as onClick(which is what the button uses) So what i did was placed the event system inside the canvas as a child object.
@Xiaolin23 жыл бұрын
@@PhycoSerpentStudios Thanks so much!!
@prodxuv3 жыл бұрын
@@PhycoSerpentStudios YOU ARE A LEGEND :)
@TheFuturistPodcast3 жыл бұрын
I wish that one day you will comeback with more tutorials. You are the GOAT!
@Peenjamin4 жыл бұрын
I had an issue with the mouse because mine was a first person game. Just know that when the game pauses you need to unlock the cursor and vice versa when you unpause! :)
@Luckyproog4 жыл бұрын
You got a problem with the shadow of the button when you hover over the button?
@manssjodell86193 жыл бұрын
I got that problem too but i dont get how you guys solved it!
@capilover10233 жыл бұрын
@@manssjodell8619 just write Cursor.lockState = CursorLockMode.Locked; in Resume() function and Cursor.lockState = CursorLockMode.None; in Pause() function
@manssjodell86193 жыл бұрын
@@capilover1023 Thank you soo much!!
@ebonywilson87103 жыл бұрын
@@capilover1023 where about do i type this ?
@ΑλέξιοςΓρηγορίαδης6 жыл бұрын
Oh man ... I wanted to finish a project for my university and to complete it i wanted to place a main menu and today i see a notifaction for this video . Thank you so much .
@KayleeVRC4 жыл бұрын
It works in the Main Menu, but when i open the game it doesn't let me interact with the buttons anymore .-.
@lachliebreninger2629 Жыл бұрын
its 11:59pm, i started work and 10 am thank you so much for these videos, i don't want to imagine how long it would've taken if i did it cold turkey!
@ihavecreatism97764 жыл бұрын
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.
@mattqson1225 жыл бұрын
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!
@GetWilleredLol4 жыл бұрын
Can anyone help me? I'm making a game with mouse movements. But when I click the button it doesn't work. It just sets it to stay in the game again. How do I fix this?
@radfish344 жыл бұрын
I'm having the same problem. did you ever find a solution.
@cjeeckazad29954 жыл бұрын
Willydd123456 u could fix it by changing the mouse clicking to a another keyword for pausing
@GetWilleredLol4 жыл бұрын
I know. I already fixed it. You just gotta make it dissapear when back in game and reappear when paused.
@cjeeckazad29954 жыл бұрын
Willydd123456 I am happy that you fixed your problem .Wish your success man
@JunkDeath4 жыл бұрын
@@GetWilleredLol how u fixed it i didnt got it :(
@agitated_cat3 жыл бұрын
THANK YOU FOR LETTING ME KNOW THAT TIMESCALE EXISTS! omg
@tharaniv62673 жыл бұрын
is the resume button in game scene works
@friesandcats19193 жыл бұрын
yea so i have the problem that my buttons dont do anything, and when i pause the game, my curser gets unlocked, but if i click anywhere, it gets locked to the screen again. help?
@pabloetcheberry14263 жыл бұрын
same problem here, could you figure it out?
@paradox49133 жыл бұрын
@fries and cats @PabloEtcheberry Sorry if this is late but check your "event system". Check to see if it has a "standalone input module" if it doesn't, add it. If you are loading from a menu scene into a game scene, check to see if the event system persists through the scene change. If not, just add a "don't destroy" script component to the "event system" , and see if your buttons work then.
@pabloetcheberry14263 жыл бұрын
@@paradox4913 Thanks for your answer, really appreciate it, but I already solved it and the problem was that another script was locking the cursor haha. Thanks Anyway!
@friesandcats19193 жыл бұрын
@@pabloetcheberry1426 aayye did I help with that lol?
@pabloetcheberry14263 жыл бұрын
@@friesandcats1919 kind of (?) :p
@Notmonoo2 жыл бұрын
Did you know if you follow all of brackeys tutorials you get the best game in the world
@vadympetruk34496 жыл бұрын
Thanks a lot! Pls make a video about RectTransform management (how to create game UI for 'any' resolution)
@AlmostM6 жыл бұрын
+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.
@smitasushilbhegde36553 жыл бұрын
AHHH! at last Start, Settings and Pause menu FINISHED!!!
@TheNefari6 жыл бұрын
What is on the Menu today :D
@ozanarslan56896 жыл бұрын
That was a cold joke... Like Elsa :D
@loki80316 жыл бұрын
xd
@mehmetakyuz52905 жыл бұрын
Jesus...
@cathacker134 жыл бұрын
@@mehmetakyuz5290 That's my favourite food
@clipsport68472 жыл бұрын
That "Yey!" on 10:24 killed me! Gosh, love this guy and miss him so much...
@trappedhere73434 жыл бұрын
i typed : public GameObject PauseMenuUI; however when i went back into unity there was no other box in my script component. and yes. i did save it. edit: nm fixed.
@blade44084 жыл бұрын
Had the same problem. called Pause(); PauseMenu();
@WW2Fr3k3 жыл бұрын
How did you fix it???
@fakuu12252 жыл бұрын
Im learning unity and c# is the first language that im actually programming and dude, your videos are literally life saviours for me, thank you so fucking much
@Crashlikag62 жыл бұрын
I was confused with how to make my game over screen and this helped soooo much thank u brackeys
@irarelyupload6930 Жыл бұрын
A funny bug I found: if you spam the jump button while paused, you will go flying in the air when you resume hahah. This is easily fixed by disabling the player controller when paused and then enabling when resumed. Like this: "player.GetComponent().enabled = false"
@jvcss6 жыл бұрын
some day I will paytron you, thank you for all
@kondzio35003 жыл бұрын
did you patroen him? it was 3 years :D
@safdardeveloper3804 Жыл бұрын
You are the best Unity explainer.
@dimensioncreators74662 жыл бұрын
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PauseMenu: MonoBehaviour { public static bool GameIsPaused = false; public GameObject PauseMenuUI; void Update() { if (Input.GetKeyDown(keyCode.Escape)) { if (GameIsPaused) { Resume(); } else { Paused(); } } } public void Resume() { PauseMenuUI.SetActive(false); Time.timeScale = 1f; GameIsPaused = false; } void Paused() { PauseMenuUI.SetActive(false); Time.timeScale = 0f; GameIsPaused = true; } public void LoadMenu() { Debug.Log("Loading menu..."); } public void QuitGame() { Debug.Log("Quitting game..."); } } this is the code but unity console:Assets\PauseMenu.cs(13,30): error CS0103: The name 'keyCode' does not exist in the current context
@KlipCentral72 жыл бұрын
its KeyCode not keycode
@omaralabdullah5296 жыл бұрын
remember to set timescale back to 1f in start or awake function if your menu is in a different scene
6 жыл бұрын
kzbin.info/www/bejne/jZapaXpsf619nbc
@aleksp87684 жыл бұрын
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)
@MLaurenavicius2 жыл бұрын
How I miss you Brackeys!!!!!
@irishbatman21006 жыл бұрын
what if we have multiple scenes
@kikobig40485 жыл бұрын
@MK nahhh that doesn't work either
@fubar84055 жыл бұрын
If Anyone else is wondering about this, you can literally make a Prefab of the canvas containing all the pause menus etc and put it in other scenes and it will work.
@luisjoia97445 жыл бұрын
Dont forget to also make a prefab of the event system!!!! and when you place the canvas prefab in another scene, place the event system as well or just place them in the same empty object and make an prefab
@OtakuUnitedStudio5 жыл бұрын
You can use DontDestroyOnLoad() for your UI canvas if you have things that need to carry over from one scene to the next like life count, health, score, etc. Otherwise, put the Canvas and EventSystem into an Empty and make it a Prefab. Drag and drop and done.
@christianthompson18395 жыл бұрын
Prefabs.
@DaRealSentaur4 ай бұрын
thank you so much you have helped with my coursework
@GregEads6 жыл бұрын
Why is the thumbnail of the video a completely different UI than what you are teaching?
@Wodsobe4 жыл бұрын
probably to show what can be done with it
@kelpdock89133 жыл бұрын
@@Ari_M17 please shut up
@NoThrottle3 жыл бұрын
You can use the same code but with a different skin. I agree that they should've shown their final product that they will be showing, but then again this is a coding channel, not a UI/UX design one.
@klippok6 жыл бұрын
Thanks! Most helpful lessons for unity beginner in youtube.
@loki80316 жыл бұрын
Heeeeelp, when im returning from the game to the menu, when im in the menu the mouce is invisivle, why?? What i cant do to see it? Help please!
@mariogamer66215 жыл бұрын
In your resume code, add these lines: Cursor.visible = true; Cursor.lockState = CursorLockMode.None; And it should work Edit: pause code
@OtakuUnitedStudio5 жыл бұрын
@@mariogamer6621 Thank you! I was about to start looking into how the cursor can be manipulated but that was enough to get me started.
@Frosfector5 жыл бұрын
I put like you did and I could not solve the mistake. Can you pass your script to me?
@OtakuUnitedStudio5 жыл бұрын
@@Frosfector Minor correction: put the cursor code Mario Gamer put here in the Pause() function and just for good measure you can also add it to the function to return to the menu.
@Frosfector5 жыл бұрын
@@OtakuUnitedStudio Thanks but I've already solved the problem, thank you very much.