我有一些包含unity3d嵌入场景的超文本标记语言内容。在苹果电脑上,Firefos或Chrome等浏览器可以使用unity3d插件播放它,但在基于UIWebView的项目中我无法处理它。在iOS上有没有可以展示Unity3D嵌入场景的插件?
发布于 2014-01-28 04:47:46
在iPhone上有针对Unity3d的UIWebview覆盖。这篇文章解释了一种在unity游戏引擎上打开UIWebView的方法。这是链接:http://benbritten.com/2009/09/24/uiwebview-overlay-for-unity3d-on-the-iphone/
发布于 2015-02-12 21:47:28
如果您正在寻找一种简单的方法,请查看Prime31的Etcetera插件,您可以使用一行https://prime31.com/docs#iosEtc从Unity调用WebView
看看这些
// Shows the inline web view. Remember, iOS uses points not pixels for positioning and layout!
public static void inlineWebViewShow( int x, int y, int width, int height )
// Closes the inline web view
public static void inlineWebViewClose()
// Sets the current url for the inline web view
public static void inlineWebViewSetUrl( string url )
// Sets the current frame for the inline web view
public static void inlineWebViewSetFrame( int x, int y, int width, int height )发布于 2019-11-26 22:56:16
看看Unity3D资产商店上的UniWebView。我已经使用这几年了,它工作得很好,但它可能不适用于您的项目。
https://assetstore.unity.com/packages/tools/network/uniwebview-3-92605
免责声明:这不是我的资产,我与作者没有任何联系。
https://stackoverflow.com/questions/21391222
复制相似问题