playMaker

Author Topic: Application Quit [SOLVED]  (Read 2593 times)

Neikke

  • Full Member
  • ***
  • Posts: 134
Application Quit [SOLVED]
« 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!

« Last Edit: November 03, 2017, 09:47:32 PM by Neikke »

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Application Quit
« Reply #1 on: November 01, 2017, 01:52:39 PM »
On click > Application Quit action
Available for Playmaker work

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Application Quit
« Reply #2 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

Neikke

  • Full Member
  • ***
  • Posts: 134
Re: Application Quit
« Reply #3 on: November 02, 2017, 07:21:55 AM »
Aha uGui! Ok I'll try this tonight! Thanks a lot!

fletcherkildren

  • Playmaker Newbie
  • *
  • Posts: 27
Re: Application Quit [SOLVED]
« Reply #4 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.