x


Customizing the Unity Web Player loading screen

http://unity3d.com/support/documentation/Manual/Customizing%20the%20Unity%20Web%20Player%20loading%20screen.html

I have the Problem i not understand....at witch place i can cahnge this code or write this code...can someone Help....

more ▼

asked Oct 16 '10 at 11:56 AM

Romannn gravatar image

Romannn
171 1 2 6

(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

Doing this is only possible with Unity Pro, but if you do have Unity Pro (I don't) I think you need to put this part:

var params = {
       backgroundcolor: "A0A0A0", // This part changes the backround color
       bordercolor: "000000", // This part changes the border color
       textcolor: "FFFFFF", // This part changes the color of some text. 
       logoimage: "MyLogo.png", // What splash logo do you want?
       progressbarimage: "MyProgressBar.png", // What loading bar do you want?
       progressframeimage: "MyProgressFrame.png" // What loading bar border do you want?
};

   unityObject.embedUnity("unityPlayer", "WebPlayer.unity3d", 600, 450, params); 

In between in your HTML file.

In unityObject.embedUnity(), I'm not sure what the "unityPlayer" thing is, but "WebPlayer.unity3d" should be replaced with the relative pathname to your unity3d file, 600, 450 are the width/height.

Edit: I think that the "unityPlayer" thing is a way for the browser to know what kind of plugin is needed - change at your own risk.

Edit: Actually, "unityPlayer" is a way for the browser to know which object has the player in it. Credit to the commentator below.

more ▼

answered Oct 26 '10 at 03:28 AM

fireDude67 gravatar image

fireDude67
945 9 15 30

"unityPlayer" is just the ID of the HTML DOM object to replace.

Feb 03 '11 at 02:36 AM Waz
(comments are locked)
10|3000 characters needed characters left

you need to put this vars in the hmtl generated by unity when you press build&run for example webplayer.html with this code is the part code of the webplayer.html. (u can see it and know what u need to change.

sorry for my english!!

    function GetUnity() {
        if (typeof unityObject != "undefined") {
            return unityObject.getObjectById("unityPlayer");
        }
        return null;
    }
    if (typeof unityObject != "undefined") {
        var params = {
                          **place to put your code!!!**

        };
        unityObject.embedUnity("unityPlayer", "WebPlayer.unity3d", 600, 512, params);
    }
    -->
more ▼

answered Nov 09 '10 at 11:05 AM

guel135 gravatar image

guel135
52 4

EDIT

Just answered my own question by trial and error. The logo image must be a 24-bit PNG. JPGs get ignored. 8-bit PNGs look like dog crap.

Having trouble getting my company logo to show up on the splash screen. Does it have to be PNG or will a JPG work?

Dec 18 '12 at 09:07 PM thesfid
(comments are locked)
10|3000 characters needed characters left

Can someone Help me...???

more ▼

answered Oct 24 '10 at 10:47 AM

Romannn gravatar image

Romannn
171 1 2 6

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x810
x21
x13

asked: Oct 16 '10 at 11:56 AM

Seen: 4809 times

Last Updated: Dec 18 '12 at 09:20 PM