Question by 
               naviln · Feb 24, 2020 at 06:39 AM · 
                androidmobileonapplicationpauseonapplicationfocus  
              
 
              OnApplicationFocus on Android - render an extra frame on pause?
I am using OnApplicationFocus to catch when the app is paused on Android. Does anyone know how to render an extra frame as the application pauses? I'd like to render a frame to the screen before it goes into the background.
I know that the iOS settings has an option for 'render an extra frame on pause', but I can't see anything like that for Android.
Appreciate any help! Here is the code I am using:
 //on app focus is used on windows and android.
 #if UNITY_STANDALONE || UNITY_ANDROID
     public void OnApplicationFocus(bool unpaused)
     {
         if (!appStartingUp)
         {
             if (unpaused)
             {
                 DebugLogging("Unpausing");
                 Unpause();
             }
             else
             {
                 DebugLogging("Pausing");
                 Pause();
             }
         }
 #endif
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                