When you publish your game for web access, where are files and assets stored?

Hi,

I wanted to ask a really basic question.

If I build a virtual world using Unity, and want to publish it to a webserver so players can click on a link to go to the game, where are the assets and game file stored? Do they get published entirely to a specific directory on the web? How does that all work?

I could not find any specific documentation to address this.

Thanks in advance,

Alan

1 Answer

1

Unity builds 2 files for webplayer - Filename.html and filename.unity3d .

You can store these files in your public_html/wwwroot/inetpub/htdocs folder depending on your server. These 2 files can be stored anywhere similar to your other web accessible files.

When I read the question it was not entirely clear to me if Alan was asking where to store the .html and .unity3d files only or if he also asks if he needs to store his assets and stuff as well. So just in case the latter was meant: Unity packs all the assets needed into the .unity3d file. So there's no need to store anything else than the .html and the .unity3d file. Your assets are for development only.