[英]onPause/onResume in a Unity plugin for Android
I'm developing a Unity plugin for an Android SDK. 我正在为Android SDK开发Unity插件。 This SDK, in its native form, needs to receive onResume/pause notifications from the app in order to work properly.
此SDK的原始格式需要从应用程序接收onResume / pause通知才能正常工作。 How can I get notifications for onResume/onPause from inside a Unity plugin?
如何从Unity插件中获取有关onResume / onPause的通知? Thanks for your help!
谢谢你的帮助!
You don't need an Android Unity plugin for onPause/onResume. 您不需要为onPause / onResume使用Android Unity插件。
This unity callback is tied to Android's onPause/onResume callbacks. 这个统一的回调与Android的onPause / onResume回调相关。 http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnApplicationPause.html
http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnApplicationPause.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.