找回密码
 立即注册
ActivityUnity打开the | android开发 2022-11-09 56 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
昨日有个朋友问我如安在Unity中调用Android中的WebView组件,实现内部浏览器款式的页面切换。开始我通知他可以通过Unity中打开Activity来实现,其实在之前的文章Unity3D研究院之打开Activity与调用JAVA代码传递参数(十八)我现已写的很清楚啦。可贵有时间那么MOMO就为了这个朋友将Unity内嵌浏览器的方法在共享出来,看这篇文章之前请一定要看Unity3D研究院之打开Activity与调用JAVA代码传递参数(十八)因为之前写过的工具MOMO在这里就不赘述啦。废话不多说,我们开始进入正题,首要打开Eclipse创建一个Android的工程、UnityTestActivity.java进口Activity,Unity中会调用这个Activity中的方法从而打开网页。

(A friend asked me yesterday that Ruan called the WebView component in Android in Unity to switch pages in the internal browser style. At first, I told him that it can be realized by opening Activity in Unity. In fact, I have written clearly in the previous article Unity3D Research Institute's Opening Activity and Calling JAVA Code to Pass Parameters (XVIII). Valuable, if you have time, MOMO will share the method of Unity embedded browser for the sake of this friend. Before reading this article, please be sure to see the Unity3D Research Institute's Opening Activity and Calling JAVA Code to Pass Parameters (XVIII), because the tool MOMO written previously will not be repeated here. Without much nonsense, let's get to the point. First, open Eclipse to create an Android project, UnityTestActivity.java to import an activity. Unity will call the methods in this activity to open the web page.)

[下载]14450430983.rar




上一篇:Android研究院之内存泄漏调试学习与总结(二十二) 文档
下一篇:Unity3D研究院之在Unity中(三十二)源码