im currently designing my play menu and i have the home button at the corner of the scene . i want to have an option menu when i click the button + when i click escape i want to pause the game
1 Answer
1you could probably do this: if(keypresseddown(keycode.escape) || button.pressed = true)
{
time.timescale = 0f;
}
Add a canvas to scene and fill inside of it with your popup menu graphics and deactivate it manually. During the game, when game paused or button clicked just activate canvas with SetActive(true) and there you go!
– mchts