2014-09-10 73 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