playMaker

Author Topic: Playmaker default event  (Read 3276 times)

tester

  • Playmaker Newbie
  • *
  • Posts: 31
Playmaker default event
« on: December 04, 2012, 05:08:21 AM »
Does Playmaker come with OnApplicationQuit() system event?
If not, any replacement?

DARK_ETERNAL

  • Full Member
  • ***
  • Posts: 110
Re: Playmaker default event
« Reply #1 on: December 05, 2012, 05:02:37 PM »
Wait. You want to fire an event after user closes the application? That's the last thing one would make as user. Exactly, why would you want such an event?

If you want to do it, let's say, as a confirmation system, you'd want to fire an event before calling the Application Quit, I guess?
Check out our new game: Nitro Chimp. Now live in App Store!

Trailer:
Download: https://itunes.apple.com/app/nitro-chimp/id557150450?l=en&mt=8

tester

  • Playmaker Newbie
  • *
  • Posts: 31
Re: Playmaker default event
« Reply #2 on: December 06, 2012, 08:40:51 PM »
why does people keep asking for reason here?

It just generally for stats, save game data.. and stuff.
It is build-in in unity3d, so why not.



tester

  • Playmaker Newbie
  • *
  • Posts: 31
Re: Playmaker default event
« Reply #3 on: December 06, 2012, 08:43:29 PM »
Any dont worry. I wrote my OnApplicationPause, OnApplicationStop Proxy for playmaker

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Playmaker default event
« Reply #4 on: December 07, 2012, 01:31:21 AM »
I'll look into adding these. Initially I was worried about the performance implications of adding every Unity event to PlayMakerFSM, but I think we've pulled the worst offenders out into proxy components that only get added added if actions use those events (e.g. mouse events, fixed update events...). However  these Application events should be fine since they're not called very often...

tester

  • Playmaker Newbie
  • *
  • Posts: 31
Re: Playmaker default event
« Reply #5 on: December 07, 2012, 03:35:19 AM »
Thanks!!!! That is really helpful!

Btw if you are worry about performance, maybe you can add a check box to enable or disable the event.
Not sure if that would give a boost.
« Last Edit: December 07, 2012, 03:38:22 AM by tester »