- Home /
Can't replace loading image in web player
I'm having issues with replacing the load image in the unity webplayer: following the instructions in the user manual, I'm able to change the background color just fine, but it won't do a thing for the images. I have a new png named MyLogo in the same directory as the html page, and I'm using 3.5 Pro.
Here's the javascript:
if (typeof unityObject != "undefined") {
var params = {
backgroundcolor: "A0A0A0",
bordercolor: "000000",
textcolor: "FFFFFF",
logoimage: "MyLogo.png",
progressbarimage: "MyProgressBar.png",
progressframeimage: "MyProgressFrame.png"
};
unityObject.embedUnity("unityPlayer", "WebPlayer/WebPlayer.unity3d", 600, 450, params);
}
Answer by Itinerant · Oct 29, 2012 at 04:48 PM
Ok, just cleaning up my own questions for anyone who finds it in the future:
The solution is that to replace the logo, you must also replace the progress bar images. If all three are replaced, it'll work out fine.
Thanks @Itinerant! I can't believe they don't advise that in the documentation/user manual.
Your answer
Follow this Question
Related Questions
How to show an image while waiting for the game to finish loading 0 Answers
Draw on Image 0 Answers
2018.2 WebAssembly loading intervals only 0%, 90%, 100% 0 Answers
Install unity web player from flash 2 Answers
Web Player Javascript Documentation 2 Answers