Ok , well i set all my UI up and what not , in 1024x768, and in the editor, in fullscreen it looks fine, and in PC Build it looks just the same. Now i make web player build, and although its set to 1024x768 as well, it is not this resolution at all. Its much larger, and the GUI is now all out of place. Why would this be. I have not edited the htm file at all either. I did look in it though , and it appeared to be configured correctly , and yet no…?
Hmm , there is definately a bug of some sort here. At the start of this project, an 800x600 web player was used. Later everything was changed to accomdate a 1024x768 UI, and when the web player was built with those new settings , everything was / is strecthed all f*d up, yet, in the stand alone pc build , its great! Now if i change the web player settings to 800x600 again, it resolves everything and builds it to the exact same proportions as the 1024x768 stand alone, and yet the html code says differently… O.O
Obviously the html is wrong vs my screen resolution, where the stand alone app shines …heh, definately something funny up here.
did you change the html? the webplayer resolution is part of the html, if you didn’t update the html your change in resolution did never take place at all
i did not change the html at all. See first post.
the only changes made , were through unity.
as mentioned, then you never updated the resolution.
the webplayer carries no resolution its the html that does
Im aware of that … but the file claims it is in 1024 correct?
Than why is the 1024 it says its in , way large than the 1024 window stand alone app?
and yet , if i change the build settings back to the original value of 800x600, the 800x600 that the html file says its in , matches the 1024x rez on my machine?
and here is the html …
if (typeof unityObject != "undefined") {
var params = {
disableContextMenu: true
};
unityObject.embedUnity("unityPlayer", "WebPlayer.unity3d", 1024, 768, params);
}
-->
</script>
<style type="text/css">
<!--
body {
font-family: Helvetica, Verdana, Arial, sans-serif;
background-color: white;
color: black;
text-align: center;
}
a:link, a:visited {
color: #000;
}
a:active, a:hover {
color: #666;
}
p.header {
font-size: small;
}
p.header span {
font-weight: bold;
}
p.footer {
font-size: x-small;
}
div.content {
margin: auto;
width: 1024px;
}
div.missing {
margin: auto;
position: relative;
top: 50%;
width: 193px;
}
div.missing a {
height: 63px;
position: relative;
top: -31px;
}
div.missing img {
border-width: 0px;
}
div#unityPlayer {
cursor: default;
height: 768px;
width: 1024px;
}
-->
as you can see , the html says 1024, and the stand alone is in 1024, but they dont match. Thats what im saying is my issue, not sure if i was unclear, hope that makes it easier. But thats the issue im having. I mean , ultimately , i can correct it all , by building 1024x stand alone , and 800x web player , but that seems odd to me. I figured just changing the resolution within unity would be sufficient. Something appears to be broke …
That has no impact on the resolution.
look into the javascript call within the html that creates the webplayer embedd. Thats the one and only place where resolution plays in
the div css style there only fucks it up completely by virtually resizing the 800x600 up to 1024x768
hmm , i honestly have no clue what your talking about , this is why i asked for help?
am i tripping out or should the unity editor not create a web html page , with a 1024x rezolution player on it , if i have that option selected in the editor?
If the answer is yes? than theres a bug , see all above … if the answer is no , than why does it have resolution options if they dont work as expected?
EDIT : and im sure at the top of what i pasted for html , is the embed part of the script… it shows 1024 as well .
oversaw that the javascript part was at the top sorry, it has shown the div part directly leading to the missassumption, sorry.
the strange thing is that you mention it to be the same size on 800x600 as the 1024 standalone. That makes completely no sense unless you have a zoom applied to generally have web content scaled up a bit within the browser, if at all.
ROFL! holy shit man , my little boy musta hit the keyboard and i wasnt looking , DOH! , shit thanks for pointing that out dreamora, wow , feel pretty dumb now, lolz Viewing it on a 42’ i never even thought to check , cause everything just looks large.
Funny i checked all code everywhere , all setting in the IDE, just not the one simple thing i shoulda O.o