Added: 10 months ago
From: Envatio
Views: 1,558
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (16)

Sign In or Sign Up now to post a comment!
  • Can you re-post your code in your video description. Great tutorial, but it would be helpful to zoom in on the code your writing, its far to blury.

  • Could you translate this into C# for people who do not know Javascript? i know that they are fairly similar but as a beginner programmer i am unsure of how to change the syntax. if you could do this that would be great.

  • @poolboy11120 unfortunately I am not currently well versed in C# but I will look into it, otherwise there may be someone in unity forums that can help you with that.

  • it took me so long just to find a tutorial on how to pause in unity

  • Another question, is it possible to release the mouse? So theres no movement, so I could for example have a menu in pause screen. perhaps a Release.mouse or similar?

  • @FlamingRoseStudios

    Not sure I understand. You want to use the mouse or you want to disable it?

    If you want to disable the mouse that's a bit tricky. You have to reference the mouselook script attached to the camera, and then set it to false.

    var Cam = GameObject.Find("Main Camera"); //Grab the camera

    var MouseLookScript = Cam.GetComponent("MouseLook"); Ref the script

    If(Paused == true){ MouseLookScript.enabled = false;

    }

  • Is there a way to do this with the Escape key? If so, what is the value for the key?

    i.e for the P button you use ("p")

  • @FlamingRoseStudios

    Try typing "Escape" that is the listed keycode

  • @Envatio ahh i figured it out, thanks :)

  • @Envatio hey i have problem i do wath you do but im making a fps game en wen i pres p the came pause

    but i can still look around how can i fix that becouse its annoying if you want to click on somthing xD

  • @joskesnel You have to reference the mouse look script on your player and disable it. Code example:

    var Player = GameObject.Find("Player");

    var MouseLookScript = Player.GetComponent("MouseLook­");

    MouseLookScript.enabled = false;

  • Did you say jizz at 0:44?

    and you should try to zoom in a bit, because i can't read it. But other than that great video

  • @mrapplestasty LOL. I admit that's what it sounds like. "WHICH IS" is what i said. Yeah don't forget the var paused jizz

  • Comment removed

  • Thanks a lot for the tutorial :D it was really helpful

  • Comment removed

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more