Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: tester on December 04, 2012, 05:08:21 AM
-
Does Playmaker come with OnApplicationQuit() system event?
If not, any replacement?
-
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?
-
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.
-
Any dont worry. I wrote my OnApplicationPause, OnApplicationStop Proxy for playmaker
-
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...
-
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.