Problems customizing the loading screen

I have tried using the documentation on this as well as following several board postings but cannot get the unity player to accept my custom loading logo.

To be specific, it does work in IE, but not firefox and chrome. Background colors change just fine, but logo will not and I’ve tried relative and absolute paths to the img.

Here is my embed code:

function GetUnity() {
		if (typeof unityObject != "undefined") {
			return unityObject.getObjectById("unityPlayer");
		}
		return null;
	}
	if (typeof unityObject != "undefined") {
		
		var params = {
			backgroundcolor: "4e0001",
			bordercolor: "ffffff",
			textcolor: "FFFFFF",
			logoimage: "img/loadinglogo.png",
			progressbarimage: "/img/prog-bar.jpg",
			progressframeimage: "../img/prog-bar.jpg"
		};
		
	
		unityObject.embedUnity("unityPlayer", "slots/<?php echo($unityPlayerName) . $initString ?>", 760, 570, params);//);
	}

What if you make Logoimage a var and select the image via inspector? Maybe that makes the path different. Just a guess really.

–

1 Answer

1

I had the same problem. Try changing your images from JPEG to PNG. That worked for me.