简体   繁体   English

如何使用 unity 和 c# 锁定/解锁 android 设备?

[英]How to lock/unlock android devices using unity and c#?

I looked all over the inte.net for a solution for a few days but couldn't find one that would help me lock/unlock an android device using unity programmatically.几天来,我在整个 inte.net 上寻找解决方案,但找不到可以帮助我以编程方式使用 unity 锁定/解锁 android 设备的解决方案。 Mostly all the solutions are using android studio.大多数解决方案都使用 android 工作室。 Can some help me out please?有人可以帮我吗?

You need to create library that will help you to use Android's native featues like toast and notifications您需要创建库来帮助您使用 Android 的本机功能,例如 toast 和通知

https://docs.unity3d.com/Manual/PluginsForAndroid.html https://docs.unity3d.com/Manual/PluginsForAndroid.html

https://docs.unity3d.com/Manual/AndroidAARPlugins.html https://docs.unity3d.com/Manual/AndroidAARPlugins.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM