Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Seth · Aug 23, 2011 at 10:45 PM · webplayercustompcloading screeninternetexplorer

Unity Web Player - Custom Loading Screen - PC

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;
     }

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Yokimato · Nov 30, 2012 at 03:32 PM 1
Share

"$$anonymous$$y (fill in the blank) is working in Safari, Chrome, $$anonymous$$ozilla, and Firefox... but not Internet Explorer." - Every web developer everywhere.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by diegoleao · Mar 12, 2012 at 08:23 AM

This happens when you open the web player html file on a browser directly. You shouldn't just run the player by clicking on the "html" file, you must put it on a web server that can properly interpret it.

Other problems include not being able to download the player when you click the "missing plugin" message/image.

I recommend you to set up a localhost server to properly test your Unity Web Player script!

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Landern · Nov 30, 2012 at 03:22 PM 0
Share

There isn't anything wrong with running/executing the html file locally on your machine, you DO NOT have to have it on a web server whatsoever unless there are dependencies. But even then it all depends on how URI/L are structured.

And that doesn't seem to be the case here, the problem @Seth seems to be having is the differences in compatibility within the browsers.

avatar image
0

Answer by okokok · Nov 30, 2012 at 08:59 PM

IT WORK YOU PUT PIC in folder Game

 <script type="text/javascript" src="http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject.js"></script>
 
 <script type="text/javascript">
 
 <!--
 
 function GetUnity() {
 
     if (typeof unityObject != "undefined") {
 
         return unityObject.getObjectById("unityPlayer");
 
     }
 
     return null;
 
 }
 
 
 
 var params = {
 
 backgroundcolor: "A0A0A0",
 
 bordercolor: "000000",
 
 textcolor: "FFFFFF",
 
 logoimage: "MyLogo.png",
 
 progressbarimage: "MyProgressBar.png",
 
 progressframeimage: "MyProgressFrame.png"
 
 };
 
 
 
 if (typeof unityObject != "undefined") {
 
     unityObject.embedUnity("unityPlayer", "WebPlayer.unity3d", 600, 450, 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: 600px;
 
 }
 
 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: 450px;
 
     width: 600px;
 
 }
 
 -->
 
 </style>
 
 
 
 
 
 <p class="header"><span>Unity Web Player | </span>WebPlayer</p>
 
 <div class="content">
 
     <div id="unityPlayer">
 
         <div class="missing">
 
             <a href="http://unity3d.com/webplayer/" title="Unity Web Player. Install now!">
 
                 <img alt="Unity Web Player. Install now!" src="http://webplayer.unity3d.com/installation/getunity.png" width="193" height="63" />
 
             </a>
 
         </div>
 
     </div>
 
 </div>
 
 <p class="footer">&laquo; created with <a href="http://unity3d.com/unity/" title="Go to unity3d.com">Unity</a> &raquo;</p>
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Web Player Dimensions and Custom Loading Screen Issue 0 Answers

Unity web player not calling up webpages using JS in internet explorer 0 Answers

custom webplayer not building project 0 Answers

Internet explorer not working with webplayer 0 Answers

Delay on Mouse down touch. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges