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

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ย. 2024

ความคิดเห็น • 77

  • @tugba7777
    @tugba7777 หลายเดือนก่อน

    Videonuz inanılmaz faydalı en kısa sürede kendi oyunuma entegre edeceğim. Daha çok öğretici video bekliyorum. Çok teşekkürler :)

  • @LegitLord2000
    @LegitLord2000 ปีที่แล้ว +3

    Really wish u added just hitting the escape key to pull up the menu

    • @RehopeGames
      @RehopeGames  ปีที่แล้ว

      You can do it easily 😊

    • @giodeCAZZO
      @giodeCAZZO 6 หลายเดือนก่อน +1

      hey, did u manage to do it? i need it too

  • @katsudev
    @katsudev 9 หลายเดือนก่อน +11

    Is there a way to use the esc button instead of aa pause button?

    • @grove-of-gnomes
      @grove-of-gnomes 6 หลายเดือนก่อน +5

      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);
      }
      }
      -

  • @icypaw
    @icypaw 13 วันที่ผ่านมา

    thank you so much Sir, perfect tutorial

  • @olegbasarab4952
    @olegbasarab4952 ปีที่แล้ว +3

    these videos are really great and helped me a lot, keep it up

    • @RehopeGames
      @RehopeGames  ปีที่แล้ว

      Glad you like the videos 😊
      Thanks for your feedback 🙏

  • @OmPrakash-pr3yp
    @OmPrakash-pr3yp ปีที่แล้ว +4

    Yay another video

  • @smbiplob9476
    @smbiplob9476 9 หลายเดือนก่อน +1

    you always make the best video. thank you so much.

    • @RehopeGames
      @RehopeGames  9 หลายเดือนก่อน

      Glad you like them! Thanks for the feedback 😊

    • @smbiplob9476
      @smbiplob9476 9 หลายเดือนก่อน

      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

  • @Zakariyae00
    @Zakariyae00 11 หลายเดือนก่อน +1

    Thank you very much, you have taught me a lot, keep it up

    • @RehopeGames
      @RehopeGames  11 หลายเดือนก่อน +1

      Glad to hear that 😊🙏

  • @mehrdadkhorasani6009
    @mehrdadkhorasani6009 5 หลายเดือนก่อน

    Thank you sir. this tutorial was so helpful for me

  • @yusuf-gg-yusuf
    @yusuf-gg-yusuf ปีที่แล้ว +1

    Thank you for the very informative and instructive video. Perfect

    • @RehopeGames
      @RehopeGames  ปีที่แล้ว +1

      I'm glad hear that, thanks bro 😊🙏

  • @naul1557
    @naul1557 ปีที่แล้ว +2

    Can you please make a tutorial on how to create terrain in RPG maker game? It's really difficult.

    • @RehopeGames
      @RehopeGames  ปีที่แล้ว +1

      Hello, maybe next time...
      Thanks for your interest 🙏

  • @leoprzybilla8529
    @leoprzybilla8529 ปีที่แล้ว +1

    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 🙏🙏🙏

  • @UnknownSENKu
    @UnknownSENKu 11 หลายเดือนก่อน +1

    Thank you good work

    • @RehopeGames
      @RehopeGames  11 หลายเดือนก่อน +1

      Thanks 😊

  • @setyonugroho3081
    @setyonugroho3081 6 หลายเดือนก่อน

    Thank You from Indonesia

  • @ysfgaming861
    @ysfgaming861 ปีที่แล้ว +1

    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  ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      @@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  ปีที่แล้ว +1

      @@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 😊

  • @truongquoctrung8149
    @truongquoctrung8149 7 หลายเดือนก่อน +1

    thank you !!!

  • @totojatiwijayanto4501
    @totojatiwijayanto4501 ปีที่แล้ว +1

    thanks for this helpful stuff

    • @RehopeGames
      @RehopeGames  ปีที่แล้ว

      Glad it was helpful! Thank you for feedback 😊

  • @matinshirjang6347
    @matinshirjang6347 11 หลายเดือนก่อน +1

    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  11 หลายเดือนก่อน

      Hi, Thanks 😊
      Did you create all function as me?
      And did add the function to the buttons as a click event ?

  • @ShoxruxQodiraliyev-e3n
    @ShoxruxQodiraliyev-e3n 3 หลายเดือนก่อน

    thank you

  • @VivianeAdamavicius
    @VivianeAdamavicius ปีที่แล้ว +2

    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.

  • @biged606
    @biged606 ปีที่แล้ว +1

    Like and like!!!👍🏻👍🏻👍🏻

  • @vinothanveerapandiyan3280
    @vinothanveerapandiyan3280 วันที่ผ่านมา

    Why i cannot drag the button images into the source image, can anybody explain

  • @grove-of-gnomes
    @grove-of-gnomes 6 หลายเดือนก่อน

    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);
    }
    }
    -

  • @minikeanu7535
    @minikeanu7535 9 หลายเดือนก่อน

    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

  • @pra3k_games
    @pra3k_games 10 หลายเดือนก่อน

    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 ..❤

  • @alexfronzi1532
    @alexfronzi1532 5 หลายเดือนก่อน

    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?

  • @jpl1545
    @jpl1545 4 หลายเดือนก่อน

    Why when i create 2 canvas the second canvas is not appearing

  • @aysukrim
    @aysukrim 8 หลายเดือนก่อน

    Hello! Is it applicable to game with videos?

  • @Habramusman
    @Habramusman ปีที่แล้ว

    I have followed the steps correctly, but in the pause menu section of the inspector only the script appears

    • @Habramusman
      @Habramusman ปีที่แล้ว

      and there is an error in the "sceneManagement" section

    • @RehopeGames
      @RehopeGames  ปีที่แล้ว

      Can you detail the error?

  • @sailornoodle
    @sailornoodle ปีที่แล้ว

    The pause button was working until I added the TimeScale function. What could I be doing wrong?

    • @RehopeGames
      @RehopeGames  ปีที่แล้ว

      Hello sorry for the late reply.
      Did you solve your problem ?

  • @KuzeyAkyuz
    @KuzeyAkyuz 7 หลายเดือนก่อน

    merhabalar sınavım var acil yetiştirmem lazım menü assetlerinin hepsini alabilir miyim acaba?

  • @iMikOo
    @iMikOo 5 หลายเดือนก่อน

    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 😭🙏🏻

    • @mohameddaoudi3814
      @mohameddaoudi3814 11 วันที่ผ่านมา

      If you still haven't found it, search for it somewhere else, you'll propably find it.

    • @iMikOo
      @iMikOo 5 วันที่ผ่านมา

      @mohameddaoudi3814
      I found a solution a while ago, thanks for not ignoring my comment 🤍

  • @harryking4700
    @harryking4700 ปีที่แล้ว +1

    Sir make game over screen in unity 2d , tha nks

    • @RehopeGames
      @RehopeGames  ปีที่แล้ว

      I've noted your request bro , thanks for your interest 😊

    • @harryking4700
      @harryking4700 ปีที่แล้ว +1

      Sir , make video intigrate ad of admob .

    • @RehopeGames
      @RehopeGames  ปีที่แล้ว

      @@harryking4700 👍

  • @HaydenBanks-000
    @HaydenBanks-000 3 หลายเดือนก่อน

    Imagine making this in Roblox Studio

  • @ysfgaming861
    @ysfgaming861 ปีที่แล้ว

    kendimi yazılımda geliştirmem için ingilizce öğrenmem şart mı

    • @RehopeGames
      @RehopeGames  ปีที่แล้ว +1

      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 😊

  • @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  ปีที่แล้ว +1

      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  ปีที่แล้ว +1

      drive.google.com/file/d/1gcgarBP0xiVgsPxT5ytxc9rEpx3gZsw3/view?usp=sharing

    • @perfcuk
      @perfcuk ปีที่แล้ว

      @@RehopeGames teşekkür ederim

  • @andreamacale2271
    @andreamacale2271 ปีที่แล้ว

    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  ปีที่แล้ว

      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 11 หลายเดือนก่อน

    plz give me the project file

    • @RehopeGames
      @RehopeGames  10 หลายเดือนก่อน

      Hello,
      I will share all project soon...
      Thanks for your interest .

  • @dr.angerous
    @dr.angerous ปีที่แล้ว +2

    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 😊