Hi, I am trying to set up a build using web player templates, but I think I am missing something in the player or build settings. I made a subfolder in my Assets folder named WebPlayerTemplates with a subfolder named SummersDay (name of my project). I then created a text file named index.html and pasted in the example template from Unity docs and put that in the SummersDay folder along with a thumbnail.
In the PlayerSettings tab of the Inspector, I put the name of the product (SummersDay) and company name (bitsong) in the cross-platform settings and chose SummersDay WebPlayer Template thumbnail which did appear.
In the Build Settings I chose Web Player, Streamed, and when the save dialog came up, I chose the SummersDay folder I had made, but the build made a new folder named WebPlayer under SummersDay and put WebPlayer.html and WebPlayer.unity3d files there. Is this correct? I don’t think so. The name SummersDay did not appear anywhere, and %UNITY_UNITYOBJECT_DEPENDENCIES% appeared at the top, and there was a “download player” icon even though I have the player installed. What am I doing wrong? Thanks.
Help, how do you set up Web Player Templates? Any hints, info, tutorials etc will be most welcome. I’ve tried every way I can think of to get the build settings to work with the templates – no luck!
This is how Unity publishes a web player for me also, so I think it is correct. I thought I read somewhere that it won’t work if you try to publish to your Assets folder, but it seems to have worked for you. Just copy the html from the WebPlayer.html file to your index.html file (or just use the WebPlayer.html file). You can rename the WebPlayer.unity3d file to SummersDay.unity3d if you want - just be sure to change the reference to it in the html file. I’m not sure why Unity doesn’t give you an option to name the web player when you publish it, but every time I publish to web player the filenames are WebPlayer.html and WebPlayer.unity3d also.
Thanks! I finally figured out that, as you say, the web player templates will only publish to files named WebPlayer. I was looking for something more, some way to change the white background and plain loading bar. I guess that will have to wait. Thanks.
Actually, you can choose a few different options when publishing to a web player. I think there are 3 different templates to choose from. You could also create your own look if you know some html.