Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Neikke on November 01, 2017, 01:11:57 PM
-
I want to have a UI button which would quit to windows my game. How do I set it up so on click application quit happens? Thanks a lot!
-
On click > Application Quit action
-
Hi,
For this the easiest way is to get the uGui Full package from the Ecosystem and then:
on your ui Button GameObject,
1: add an Fsm
2: create a new state
3: use the action "UGui Button On Click Event"
4: plug your own event on this like "QUIT APP"
5: use "QUIT APP" as a transition from that state to another state
6: on that other state, use the action. "Application quit"
Bye,
Jean
-
Aha uGui! Ok I'll try this tonight! Thanks a lot!
-
Hi!
So has something changed (on mobile)? I use the exact method described above on my Android app and it minimizes the app - but does not close it.