Search Unity

WebPlayer - Customize the Laoding Bar with progress text

Discussion in 'Scripting' started by michael bricout, Jun 5, 2012.

  1. michael bricout

    michael bricout

    Joined:
    Aug 26, 2010
    Posts:
    59
    Hi,

    I have a problem during the loading time with my 3D scene in WebPlayer mode.

    My customers says : “It takes so long time to load and we can’t see that the scene is loading …”

    So I decide to customize the laoding bar with this link : http://unity3d.com/support/documentation/Manual/Customizing%20the%20Unity%20Web%20Player%20loading%20screen.html

    Here is the code we use :
    Code (csharp):
    1. <object classid="clsid:444785F1-DE89-4295-863A-D46C3A781394"
    2.                 codebase="http://webplayer.unity3d.com/download_webplayer-2.x/UnityWebPlayer.cab#version=2,0,0,0" width="1010" height="472" align="middle" id="UnityObject">
    3.               <param name="src" value="WebPlayer.unity3d" />
    4.               <param name="logoimage" value="logo_new3s.png">
    5.               <param name="backgroundcolor" value="000000">
    6.               <param name="progressbarimage" value="progressbar.png">
    7.               <param name="progressframeimage" value="progressframe.png">
    8.               <param name="bordercolor" value="000000">
    9.               <embed src="WebPlayer.unity3d" width="1010" height="472" align="middle" id="UnityEmbed"
    10.                 type="application/vnd.unity" pluginspage="http://www.unity3d.com/unity-web-player-2.x" logoimage="logo_new3s.png"
    11.                 backgroundcolor="000000" progressbarimage="progressbar.png" progressframeimage="progressframe.png" bordercolor="000000" />            
    12.               <div align="center"> This content requires the Unity Web Player<br />
    13.                 <br />
    14.                 <a href="http://www.unity3d.com/unity-web-player-2.x">Install the Unity Web Player today!</a></div>
    15.             </object>
    16.  
    Everythings works fine ! :D

    I would like to add a parameter that could show some text like this : “Loading in progress … Please wait”

    This text would be place below the progress bar and his color would be green.

    I would like to see the text moving from Right to Left ...

    Is there a way to do that ? :confused:

    Thanks for your help ! ;)
     
    Last edited: Jun 5, 2012