Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Event when player closes application?

Discussion in 'Unity Analytics' started by CG_Echtzeitschmiede, Nov 1, 2015.

  1. CG_Echtzeitschmiede

    CG_Echtzeitschmiede

    Joined:
    Feb 19, 2015
    Posts:
    93
    Hello,

    Is it possible to submit an event when a player closes the application? By "closing" I mean double-tapping the home button and then closing the window. At least I assume this is how most players quit?

    Basically, I want to know which level was loaded when they do this, so I'd like to submit an event.
     
  2. mpinol

    mpinol

    Unity Technologies

    Joined:
    Jul 29, 2015
    Posts:
    317
    Hi @CG_Echtzeitschmiede,

    Currently there is no way to send an event when an application is closing. You could try sending two Custom Events, one when a level is started and one when the level is completed. This way you would be able to use the counts of each on the Data Explorer to determine how many users started one level but never finished.
     
  3. CG_Echtzeitschmiede

    CG_Echtzeitschmiede

    Joined:
    Feb 19, 2015
    Posts:
    93
    Thank you for the info!