Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Neikke on November 01, 2017, 01:11:57 PM

Title: Application Quit [SOLVED]
Post 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!

Title: Re: Application Quit
Post by: Fat Pug Studio on November 01, 2017, 01:52:39 PM
On click > Application Quit action
Title: Re: Application Quit
Post by: jeanfabre on November 02, 2017, 02:18:27 AM
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
Title: Re: Application Quit
Post by: Neikke on November 02, 2017, 07:21:55 AM
Aha uGui! Ok I'll try this tonight! Thanks a lot!
Title: Re: Application Quit [SOLVED]
Post by: fletcherkildren on March 28, 2022, 01:08:53 PM
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.