Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: tester on December 04, 2012, 05:08:21 AM

Title: Playmaker default event
Post by: tester on December 04, 2012, 05:08:21 AM
Does Playmaker come with OnApplicationQuit() system event?
If not, any replacement?
Title: Re: Playmaker default event
Post by: DARK_ETERNAL 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?
Title: Re: Playmaker default event
Post by: tester 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.


Title: Re: Playmaker default event
Post by: tester on December 06, 2012, 08:43:29 PM
Any dont worry. I wrote my OnApplicationPause, OnApplicationStop Proxy for playmaker
Title: Re: Playmaker default event
Post by: Alex Chouls 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...
Title: Re: Playmaker default event
Post by: tester 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.