how to add option menu popup when i click to button?

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

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!

1 Answer

1

you could probably do this: if(keypresseddown(keycode.escape) || button.pressed = true)
{
time.timescale = 0f;
}