#I am trying to make a pause system but
1 messages · Page 1 of 1 (latest)
when I press escape, the pauseMenuCanvas does not show up
paused does not become true
and the movement does not disable
Let me try that. I've never heard of GetKeyUp
do u disable the canvas before pressing play?
Yes
enable it, then through code disable it at the very start when ur game starts
then try to renable it the way you want to
By reference, .GetKey
Returns true while the user holds down the key identified by name.```
I had this issue too, for some reason unity doesn't work with an object disabled before play
okay, let me see if that works, give me sec...

This doesn't work
did u enable it in the hierarchy before pressing play?
Didnt GetKeyUp work? 
It did actually! Unfortunately, this isn't the effect I want in my game because it can be abused easily, is there any way to get around it?
Yea, I made sure to enable it first then set it to false upon Awake()
How's that
if the player pauses during mid-air, he continues to be affected by physics and doesn't stop mid-air. I don't know how to make him stop mid-air anyway
the simplest solution I have for u is to set the Time to 0, this freezes everything tho
That might work actually
how do I set it back to normal time afterwards
Either do that or stop every other component
if they unpause
just set it back to 1
okay! so, Time.timeScale = 0;
right?
that should do it ya
thanks!