2014-09-10 74 views
1

我在Express上使用NodeJS並嘗試在我的網站上運行Unity html文件。與NodeJS運行統一

基本上我想要做的是獲得一個Unity的html文件,我必須在我的NodeJS網站上播放。這些文件是WebPlayer.htmlWebPlayer.unity3d。如果我在瀏覽器中打開WebPlayer.html的本地副本,遊戲會很好。但是,如果我嘗試通過我的網站運行遊戲,則會收到消息Failed to download data file。我已經看了這個,並且看到人們和我有同樣的問題,但是找不到來自使用節點的人的太多有用的建議。任何幫助,將不勝感激。謝謝!

Running the local copy in my browser (unity is loading the game and is working fine).
file:///Users/thomasbaldwin/Desktop/WebPlayer.html enter image description here

Running the WebPlayer.html file on my local server.
http://localhost:3000/account/game/ enter image description here

回答

0

嘗試重命名webplayer.html到的index.html,重命名HTML文件不會影響webplayer.unity3d