- Home /
Customize Web Player Loader placement of loadimage
I am customize the web player loader. I want to have image and the loader bar fill the entire game area (760x600). If I make the load image this size then the load bar and load frame are pushed to the bottom which is below the fold and users miss that something is being loaded.
So I took shrunk the load image to bring the load bar and frame up higher. The problem is that the load image is centered. Is there a way to force the load image to be in the upper left instead? Also there seems to be a white gap between the load image and load bar/frame. I would like this to be gone as I am trying to make the image appear as one.
Anyone know if this is possible / not possible?
Answer by efge · Feb 25, 2011 at 09:57 AM
I think it is not possible to place the loader bar somewhere else by the parameters of the Unity Web Player. What you could try is the following:
Set your load image as the background image for the whole iframe.
Make sure its size is 760px x 600px and all borders and margins are set to zero, e.g.
<body style="margin:0">
Define a small transparent png file as your logoimage.
Create and scale a progressbarimage and a progressframeimage that they fit inside your iframe. (Maybe you have to use a lot of alpha to get the right positions.)
Edit: Nice try :-) ... but it doesn't work. The unityObject is on top of the background of the html page and you can not set the background-color of it to transparent. Sorry.
The other way is to create a very simple and fast loading scene in Unity for your game and use it as a "loading image" as described here: Web Player Streaming
760px width = Facebook iframe?! I will try it myself and post the results.
Efge, yes 760 is the facebook iframe. I will talk to the dev $$anonymous$$m and see what they can do with a quick loader. We are upgrading to unity 3 and plan on doing some stuff like that any ways. We just were not looking at it from this perspective.
Your answer
![](https://koobas.hobune.stream/wayback/20220613110201im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to load CSV files from webplayer 3 Answers
How to load a local texture file to WebPlayer 3 Answers
Save/Load game using XML on Browser/Web Player 2 Answers