![]() However, this requires including the classes.jar file within the plugin, or needs extra effort to exclude it from builds. However, this method may introduce friction and difficulties in workflow, such as difficulty in source control of the extension plugin, and maintaining other modules/plugins that you may want to introduce.Īnother method suggested around the web is to manually copy classes.jar from the Unity directory to your working directory. The suggested method in Unity documentation is to extend UnityPlayerActivity is to open the exported Android project in Android Studio, and do modifications from there. ![]() The common methods to extend UnityPlayerActivity are: An application can override all basic interactions between the Android OS and the Unity Android application. When you develop a Unity Android application, you can use plug-ins to extend the standard UnityPlayerActivity class (the primary Java class for the Unity Player on Android, similar to AppController.mm on Unity iOS). On Android, it is possible to extend UnityPlayerActivity to override existing interactions between Unity and Android OS or introduce new behaviors. It also removes the need to copy, maintain (and even worse, include) the file classes.jar from the Unity installation. This project allows you to extend UnityPlayerActivity in an isolated source-control friendly Android Studio project, without a need to work on the exported Android Studio project of your game. You can find the resulting project of this guide here on my Github collection Unity Good Practices. Note: This process is specific to the Android platform and not applicable to other platforms. Extending the UnityPlayerActivity on Android
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |