2014-01-27 36 views
2

我已經有一些包含unity3d嵌入式場景的HTML內容。在Mac上,Firefos或Chrome瀏覽器可以使用unity3d插件播放它,但我無法在基於UIWebView的項目中處理它。有沒有任何插件在iOS上顯示Unity3D嵌入式場景?UIWebView上的Unity3D

+0

可能的重複:http://stackoverflow.com/q/11093792/956886 – giacomelli

回答

0

在iPhone上有用於Unity3d的UIWebview覆蓋圖。這篇文章解釋了一種打開Unity Web遊戲引擎的UIWebView的方法。 這裏是鏈接: http://benbritten.com/2009/09/24/uiwebview-overlay-for-unity3d-on-the-iphone/

+0

這兩個鏈接都描述瞭如何修改創建的統一應用程序以繼承AppController窗體統一。但是,這是可以做的和應用程序,它可以從服務器下載一個.unity3D文件並顯示在UIView? – RFG

+1

不會這樣工作,因爲Unity沒有移動瀏覽器的網絡播放器。 – eselk

0

如果你正在尋找一種簡單的方法,看看諸如此類的插件通過Prime31 您可以從團結與單行調用的WebView https://prime31.com/docs#iosEtc

看看這些

// 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)