0
Answered

Press the button to display the hidden game menu

cloud cang 5 months ago in Game Creator updated by Marti (Lead Developer) 5 months ago 2

I want to know how to hide or show the game menu by pressing a button.I am a newbie and I need help.

Unity version:
2019.3.8
Game Creator version:
1.1.8

Answer

Answer
  1. Add a Trigger for input/key down/Key that calls Action/Toggle a Bool Variable.
  2. Add another Trigger for onVariable Change calls a Condition.
  3. Then add a Condition to check the Bool something like if True Action/Canvas Alpha 1, if False, Canvas Alpha 0.
  4. Add a Menu Canvas, add aGroup component too this, add all your menu buttons.

Or you could just use the Menu in the UI Components Module.

GOOD, I'M SATISFIED

Thanks for your reply, this problem has been solved.

Satisfaction mark by cloud cang 5 months ago
Answer
  1. Add a Trigger for input/key down/Key that calls Action/Toggle a Bool Variable.
  2. Add another Trigger for onVariable Change calls a Condition.
  3. Then add a Condition to check the Bool something like if True Action/Canvas Alpha 1, if False, Canvas Alpha 0.
  4. Add a Menu Canvas, add aGroup component too this, add all your menu buttons.

Or you could just use the Menu in the UI Components Module.