Custom Splash Screen

Where do I put this code?

http://unity3d.com/support/documentation/Manual/Customizing%20the%20Unity%20Web%20Player%20loading%20screen.html

Yes I have Unity Pro :slight_smile:

Have a look at this one:
http://unity3d.com/support/documentation/Manual/Using%20Web%20Player%20templates.html

  • Go to the unity Folder, copy one of the templates into “WebPlayerTemplates in your projects Assets folder.”
  • Modify the .html file with your modifications.
  • Put your logo into your template folder.

Now you should be able to build with this template.

Thanks joshimoo that’s good to know.

However that’s all about the webpage that the webplayer sits in, not the webplayer loading screen.

Here is the code to change the loading screen:

var params = {
	backgroundcolor: "A0A0A0",
	bordercolor: "000000",
	textcolor: "FFFFFF",
	logoimage: "MyLogo.png", 
	progressbarimage: "MyProgressBar.png", 
	progressframeimage: "MyProgressFrame.png"
};

unityObject.embedUnity("unityPlayer", "WebPlayer.unity3d", 600, 450, params);

I have that code from the link in my first post but i don’t know where to put it. Anyone?

No Problem

The code comes “into the webpage the webplayer sits in” you don’t acctually modify the webplayer in itself.
Your just passing certain calling parameters via the “webpage the player sits in”.

I hope that helps understanding the concept a bit better?

You need to edit the file and change the parameters.

I got it now thanks for the help guys.

I was confused because I thougth the webplayer was independant but this means you have to include your 3 images and change the html on the page it sits in.

It’s odd that you can customise the loading screen with html once exported, but can’t customise the loading screen with the webplayer build settings, but you can change the splash in the build settings if a standalone build.

Thanks for sharing the code to change the loading screen :slight_smile:
Quick question, though: is it possible to have a background image instead of a background colour?

The current original html code coming from unity looks like this:

Where do I place the mentioned params-code to customize the loaderbar now?