How to Create a PAUSE MENU in Unity ! | UI Design Tutorial

  Рет қаралды 27,788

Rehope Games

Rehope Games

Күн бұрын

In this Unity 2D tutorial we'll create a PAUSE MENU!
First we're gonna make a Pause Menu User Interface (UI).
Then we'll create simple and easy-to understand Pause Menu c# script code.
And we'll learn how to add the Pause Menu to all game level scenes.
Enjoy the video ☕
----------------------------
🖐 Hi Game developer
Welcome to Rehope Games I'm Murat
I share unity tutorial videos on my channel. if you want to make a game with unity (especially 2d platformer game), the videos here will definitely interest you.
----------------------------
#unitytutorials, #unity2d, #unity2dplatformer

Пікірлер: 73
@olegbasarab4952
@olegbasarab4952 Жыл бұрын
these videos are really great and helped me a lot, keep it up
@RehopeGames
@RehopeGames Жыл бұрын
Glad you like the videos 😊 Thanks for your feedback 🙏
@mehrdadkhorasani6009
@mehrdadkhorasani6009 Ай бұрын
Thank you sir. this tutorial was so helpful for me
@gozumyusuff
@gozumyusuff 10 ай бұрын
Thank you for the very informative and instructive video. Perfect
@RehopeGames
@RehopeGames 9 ай бұрын
I'm glad hear that, thanks bro 😊🙏
@khodar.1karawita
@khodar.1karawita 7 ай бұрын
Thank you very much, you have taught me a lot, keep it up
@RehopeGames
@RehopeGames 7 ай бұрын
Glad to hear that 😊🙏
@GEMAGEMA-xr3rp
@GEMAGEMA-xr3rp Жыл бұрын
Thank you, great video, as usual. I hope to make a lesson that moves to the next stage when the enemy dies
@RehopeGames
@RehopeGames Жыл бұрын
Hello and thank you for your nice feedback 🙏 I plan publish tutorials about 2D Action game. Maybe I'll show your request in this tutorial..
@leonl9123
@leonl9123 11 ай бұрын
That's quite simple, just use "SceneManager.LoadScene("YourSceneName");" in the enemy death function.
@smbiplob9476
@smbiplob9476 6 ай бұрын
you always make the best video. thank you so much.
@RehopeGames
@RehopeGames 6 ай бұрын
Glad you like them! Thanks for the feedback 😊
@smbiplob9476
@smbiplob9476 6 ай бұрын
Thank you so much for your reply. by the way, I want to tell you something I am searching last few days about complete shopping system. I did not find any video which whows first to last. can you please make videos on this. please@@RehopeGames
@leoprzybilla8529
@leoprzybilla8529 Жыл бұрын
I like your videos so much thank you for that :) and sorry if I ask again but do you know exakly when the designs are coming out ? :)
@RehopeGames
@RehopeGames Жыл бұрын
Thank you so much again 😊 In fact, these designs are quickly designed visuals for the video. I want to make a better design. I couldn't care because I was going through a very busy period. I will have time in 2 weeks. Thanks for your interest 🙏🙏🙏
@OmPrakash-pr3yp
@OmPrakash-pr3yp Жыл бұрын
Yay another video
@RehopeGames
@RehopeGames Жыл бұрын
😊
@setyonugroho3081
@setyonugroho3081 2 ай бұрын
Thank You from Indonesia
@truongquoctrung8149
@truongquoctrung8149 3 ай бұрын
thank you !!!
@totojatiwijayanto4501
@totojatiwijayanto4501 Жыл бұрын
thanks for this helpful stuff
@RehopeGames
@RehopeGames Жыл бұрын
Glad it was helpful! Thank you for feedback 😊
@UnknownSENKu
@UnknownSENKu 7 ай бұрын
Thank you good work
@RehopeGames
@RehopeGames 7 ай бұрын
Thanks 😊
@katsudev
@katsudev 5 ай бұрын
Is there a way to use the esc button instead of aa pause button?
@grove-of-gnomes
@grove-of-gnomes 3 ай бұрын
I did it like this: - using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class PauseMenuScript : MonoBehaviour { bool gamePaused = false; [SerializeField] GameObject pauseMenu; void Update() { if (Input.GetKeyDown(KeyCode.Escape) && gamePaused == false) { Time.timeScale = 0; gamePaused = true; pauseMenu.SetActive(true); } else if ((Input.GetKeyDown(KeyCode.Escape) && gamePaused == true)) { Time.timeScale = 1; gamePaused = false; pauseMenu.SetActive(false); } } public void Home() { SceneManager.LoadScene(0); } public void Continue() { Time.timeScale = 1; gamePaused = false; pauseMenu.SetActive(false); } } -
@minikeanu7535
@minikeanu7535 5 ай бұрын
Hey watsup man I have a problem when i click on the home button and the click on the play button my character glitches and goes under the floor
@alexfronzi1532
@alexfronzi1532 Ай бұрын
Hi, i have a problem with the pause menu script. When i write the code to freeze the game(Time.timescale = 0) my game is not freezing. What should i do?
@naul1557
@naul1557 Жыл бұрын
Can you please make a tutorial on how to create terrain in RPG maker game? It's really difficult.
@RehopeGames
@RehopeGames Жыл бұрын
Hello, maybe next time... Thanks for your interest 🙏
@ysfgaming861
@ysfgaming861 Жыл бұрын
kodlarında ne işe yaradığını açıklayarak yeni bir video gelir mi elinize sağlık gerçekten yaralı videolar ama tek anlamadığım kodların işlevleri 😍😍
@RehopeGames
@RehopeGames Жыл бұрын
Merhaba kardeşim, güzel yorumun için çok teşekkür ederim 🙏 Sonraki videolarda daha açıklayıcı olmaya çalışırım 😊
@ysfgaming861
@ysfgaming861 Жыл бұрын
@@RehopeGames 🥰🥰sizi gerçekten ilk videonuzda beğendim ve sevdim ,umarım yakında daha da büyürsünüz .ne kadar teşekkür etsek azdır ellerinize sağlık
@RehopeGames
@RehopeGames Жыл бұрын
@@ysfgaming861 Güzel dileklerin için çok teşekkürler, bi parça faydamız oldu ise ne mutlu bize . Projenizde Başarılar dilerim 😊
@matinshirjang6347
@matinshirjang6347 8 ай бұрын
hi Thank you very mouch for this nice tutorial . my restume button doesnt work (UnassignedReferenceException: The variable puseMenue of PuseMenue has not been assigned. You probably need to assign the puseMenue variable of the PuseMenue script in the inspector.) can you help me please ?
@RehopeGames
@RehopeGames 7 ай бұрын
Hi, Thanks 😊 Did you create all function as me? And did add the function to the buttons as a click event ?
@LegitLord2000
@LegitLord2000 8 ай бұрын
Really wish u added just hitting the escape key to pull up the menu
@RehopeGames
@RehopeGames 8 ай бұрын
You can do it easily 😊
@giodeCAZZO
@giodeCAZZO 3 ай бұрын
hey, did u manage to do it? i need it too
@aysukrim
@aysukrim 4 ай бұрын
Hello! Is it applicable to game with videos?
@VivianeAdamavicius
@VivianeAdamavicius Жыл бұрын
Hi again, I managed to make it work, but when I pause the game the music does not pause and continues playing, there is a way to solve it? (I only use the audio source)
@RehopeGames
@RehopeGames Жыл бұрын
Hi 🙂 Yes, you have a solution. You can use 2 audio source ( for SFX and Music ). When you pause the game access music audio source component and use pause function ( _musicAudioSource.Pause() ), and when you resume the game use Play function. Or you you can use Mute function.
@pra3k_games
@pra3k_games 6 ай бұрын
Hello sir I have one question Please give me reply Question:- when I press pause button, then all sound aslo stop working . because my game is zombie Survival and when zombie collide to player then get the sound. when zombie collide to player then sound play but that's time I pressing pause button but sound also play pls give me reply ❤ for sound also stop... subscriber ..❤
@biged606
@biged606 Жыл бұрын
Like and like!!!👍🏻👍🏻👍🏻
@RehopeGames
@RehopeGames Жыл бұрын
Thanks bro 😊
@jpl1545
@jpl1545 13 күн бұрын
Why when i create 2 canvas the second canvas is not appearing
@grove-of-gnomes
@grove-of-gnomes 3 ай бұрын
I made my Pause Menu show up by pressing ESC. Here is the code I used: - using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class PauseMenuScript : MonoBehaviour { bool gamePaused = false; [SerializeField] GameObject pauseMenu; void Update() { if (Input.GetKeyDown(KeyCode.Escape) && gamePaused == false) { Time.timeScale = 0; gamePaused = true; pauseMenu.SetActive(true); } else if ((Input.GetKeyDown(KeyCode.Escape) && gamePaused == true)) { Time.timeScale = 1; gamePaused = false; pauseMenu.SetActive(false); } } public void Home() { SceneManager.LoadScene(0); } public void Continue() { Time.timeScale = 1; gamePaused = false; pauseMenu.SetActive(false); } } -
@iMikOo
@iMikOo Ай бұрын
I know that it is outtt of the topic what I'm talking about, but I'm having trouble building APK in Unity, can u explain that in a video on ur channel and be in a hurryyyy, plssssss sirrrr 😭🙏🏻
@KuzeyAkyuz
@KuzeyAkyuz 3 ай бұрын
merhabalar sınavım var acil yetiştirmem lazım menü assetlerinin hepsini alabilir miyim acaba?
@sailornoodle
@sailornoodle 9 ай бұрын
The pause button was working until I added the TimeScale function. What could I be doing wrong?
@RehopeGames
@RehopeGames 8 ай бұрын
Hello sorry for the late reply. Did you solve your problem ?
@Edelweiss.97
@Edelweiss.97 Жыл бұрын
I have followed the steps correctly, but in the pause menu section of the inspector only the script appears
@Edelweiss.97
@Edelweiss.97 Жыл бұрын
and there is an error in the "sceneManagement" section
@RehopeGames
@RehopeGames Жыл бұрын
Can you detail the error?
@harryking4700
@harryking4700 10 ай бұрын
Sir make game over screen in unity 2d , tha nks
@RehopeGames
@RehopeGames 10 ай бұрын
I've noted your request bro , thanks for your interest 😊
@harryking4700
@harryking4700 10 ай бұрын
Sir , make video intigrate ad of admob .
@RehopeGames
@RehopeGames 10 ай бұрын
@@harryking4700 👍
@perfcuk
@perfcuk Жыл бұрын
selamlar bu background png sini paylaşma ihtimaliniz var mı ? şuan proje üzerinde çalışıyorumda çok güzel olur paylaşabilirseniz
@RehopeGames
@RehopeGames Жыл бұрын
Merhaba kardeşim, eve geçince paylaşayım akşam 👍
@perfcuk
@perfcuk Жыл бұрын
@@RehopeGames abi bu akşama projemi teslim etmem lazımda en kısa zamanda atabilirsen memnun olurum. teşekkür ederim
@RehopeGames
@RehopeGames Жыл бұрын
drive.google.com/file/d/1gcgarBP0xiVgsPxT5ytxc9rEpx3gZsw3/view?usp=sharing
@perfcuk
@perfcuk Жыл бұрын
@@RehopeGames teşekkür ederim
@ysfgaming861
@ysfgaming861 Жыл бұрын
kendimi yazılımda geliştirmem için ingilizce öğrenmem şart mı
@RehopeGames
@RehopeGames Жыл бұрын
Türkçe kaynaklar benim için yeterli ve globale iş yapmıcam diyorsan şart değil bence. Ama alanında gerçekten iyi yerlere gelmek istiyorsan şart bence. Türkiye'de bir şirkette işe girecek olsan bile yabancı dil seni rakiplerinden öne çıkarır. Sonuç olarak yavaş yavaş öğren derim dostum 😊
@andreamacale2271
@andreamacale2271 9 ай бұрын
In the first level, the pause button work, but in the other it doesn't work, because the buttons of the pause menu (except of the pause button) doesn't click.
@RehopeGames
@RehopeGames 8 ай бұрын
Did you create a prefab from the Pause panel and add it other scenes?
@QuickCut.1
@QuickCut.1 Жыл бұрын
make enemy ai and player melee combat
@RehopeGames
@RehopeGames Жыл бұрын
I plan this for Action game ( so next time)
@opmistakarmy3974
@opmistakarmy3974 7 ай бұрын
plz give me the project file
@RehopeGames
@RehopeGames 7 ай бұрын
Hello, I will share all project soon... Thanks for your interest .
@dr.angerous
@dr.angerous Жыл бұрын
Very basic stuff for noobs, really not real programming at all. But good for newbs
@RehopeGames
@RehopeGames Жыл бұрын
Hello , Yes that's true. I'm gonna publish tutorial from beginner to advanced. Maybe next videos will be suitable for you 😊
Make a TIMER & COUNTDOWN in 5 Mins | Unity Tutorial for Beginners
5:21
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 39 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 69 МЛН
ВОДА В СОЛО
00:20
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 32 МЛН
Make Your MAIN MENU Quickly! | Unity UI Tutorial For Beginners
10:32
PAUSE MENU in Unity
12:13
Brackeys
Рет қаралды 982 М.
Realtime 2D Shadows in Unity 3D (HDRP/URP Shadergraph)
5:34
SonnyMakesGames
Рет қаралды 19 М.
A new way to generate worlds (stitched WFC)
10:51
Watt Designs
Рет қаралды 520 М.
How to make a menu in Unity - UI Tutorial
26:27
Tarodev
Рет қаралды 182 М.
I Made My First Game in Godot in 3 Weeks...
26:21
Jack Sather
Рет қаралды 279 М.
MAIN MENU in Unity (Best Menu Tutorial 2024)
1:24:21
SpeedTutor
Рет қаралды 197 М.
Unity AUDIO Volume Settings Menu Tutorial
9:24
Rehope Games
Рет қаралды 60 М.
How Animate UI BUTTONS in Unity (Easiest Way)
7:53
BudGames
Рет қаралды 19 М.
How to ACTUALLY get into Gamedev
14:01
DaFluffyPotato
Рет қаралды 708 М.
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 39 МЛН