How to perform an action from a button? I want use some button on GUI to trigger action such as attack , ability , open menu, exit in mobile game , Mobile game no input key to do click.
I also saw "Control Maps" setting in editor, Now I want know how to trigger the action from button in mobile. such as, button1 --> magic button2 --> attack button3--> open menu button4--> open setting dialog( stop music)
That is easily done via the control type HUD. Go to Menus -> HUD, create a new HUD. Let's call it Button1. In the HUD type, put in Control and then go down to the Add Control Element and click add. Put the Control type to Positive Button and for the Input Key section, put in the key that is used for firing the magic action. Tweak the display conditions and the rest of the options to your liking. Do the same for Button2. Just create a new HUD, a new GUI box and switch out the input key to the attack key. Same for the open menu button and button4.
Go to Menus -> HUD, create a new HUD. Let's call it Button1. In the HUD type, put in Control and then go down to the Add Control Element and click add. Put the Control type to Positive Button and for the Input Key section, put in the key that is used for firing the magic action. Tweak the display conditions and the rest of the options to your liking. Do the same for Button2. Just create a new HUD, a new GUI box and switch out the input key to the attack key. Same for the open menu button and button4.
thanks for much :)
I shall go to try.