Hello Awesome Unity Dev People!
Unity Pro
Version 3.40f5
I have a question regarding the Unity Web Player for PC. My custom loading screen is working in Safari, Chrome, Mozilla, and Firefox… but not Internet Explorer. I’m using custom images that are RGB 8 bit and RGBa 8 bit, and the progress frame and progress bar images are the same size. When opened in Internet Explorer, the images appear correctly at first, however, as the progress bar begins to expand to the right, the alpha channeled progress FRAME shrinks to the right - to nothing. It should remain anchored in place as the progress bar expands underneath it.
I think it’s almost there, but I can’t quite seem to pin down that alpha channeled progress frame so that it doesn’t move or shrink to the right.
How can I keep it in place?
If anyone has any suggestions for this, it would be great to hear them.
Attached is the code for it:
if (typeof unityObject != "undefined") {
var params = {
backgroundcolor: "000000",
bordercolor: "000000",
textcolor: "FFFFFF",
logoimage: "MyLogo.png",
progressbarimage: "MyProgressBar.png",
progressframeimage: "MyProgressFrame.png"
};
unityObject.embedUnity("unityPlayer", "WebPlayer.unity3d", 800, 600, params);
}
-->
</script>
<style type="text/css">
<!--
body {
font-family: Helvetica, Verdana, Arial, sans-serif;
background-color: black;
color: white;
text-align: center;
}
a:link, a:visited {
color: #bfbfbf;
}
a:active, a:hover {
color: #bfbfbf;
}
p.header {
font-size: small;
}
p.header span {
font-weight: bold;
}
p.footer {
font-size: x-small;
}
div.content {
margin: auto;
width: 800px;
}
div.missing {
margin: auto;
position: relative;
top: 50%;
width: 256px;
}
div.missing a {
height: 512px;
position: relative;
top: -31px;
}
div.missing img {
border-width: 0px;
}
div#unityPlayer {
cursor: default;
height: 600px;
width: 800px;
}
Unity Web Player | MyGame
"My (fill in the blank) is working in Safari, Chrome, Mozilla, and Firefox... but not Internet Explorer." - Every web developer everywhere.
– Yokimato