Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

onPause/onResume in a Unity plugin for Android

I'm developing a Unity plugin for an Android SDK. This SDK, in its native form, needs to receive onResume/pause notifications from the app in order to work properly. How can I get notifications for onResume/onPause from inside a Unity plugin? Thanks for your help!

like image 947
Almog C Avatar asked Sep 20 '25 05:09

Almog C


1 Answers

You don't need an Android Unity plugin for onPause/onResume.

This unity callback is tied to Android's onPause/onResume callbacks. http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnApplicationPause.html

like image 102
Twinsen Avatar answered Sep 22 '25 19:09

Twinsen