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.
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?
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.
pvocc21 3 months ago
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 4 months ago
@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.
Envatio 4 months ago
it took me so long just to find a tutorial on how to pause in unity
JRhalo14 6 months ago
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 8 months ago
@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;
}
Envatio 8 months ago
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 8 months ago
@FlamingRoseStudios
Try typing "Escape" that is the listed keycode
Envatio 8 months ago
@Envatio ahh i figured it out, thanks :)
FlamingRoseStudios 8 months ago
@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 3 months ago
@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;
Envatio 3 months ago
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 9 months ago
@mrapplestasty LOL. I admit that's what it sounds like. "WHICH IS" is what i said. Yeah don't forget the var paused jizz
Envatio 9 months ago
Comment removed
mrapplestasty 9 months ago
Thanks a lot for the tutorial :D it was really helpful
lonelydragon90 9 months ago
Comment removed
lonelydragon90 9 months ago