Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 fukachan · Mar 11, 2013 at 11:03 AM · webplayerweb

It is a question of when viewed in Web browser.

It is a question of when viewed in Web browser.

On the display of the Unity WebPlayer

I'd like to overlap another div, Unity is always on top, even if you specify the z-index.

Is there a way to display to the front than Unity?

(Can not be displayed superimposed using the "div" tag?)

Any help would be appreciated, Thanks!

Comment
Add comment · Show 18
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 ByteSheep · Mar 11, 2013 at 11:17 AM 0
Share

What exactly are you trying to do? Could you post the html script?
You can only set the z-index for div tags that have a position of "fixed" or "absolute".. I tried it out and it's working fine in my web browser. Here's an image of the top of the web page (the blue is the web player and the grey bar across is a div) alt text

screen shot 2013-03-11 at 11.25.25.png (13.4 kB)
avatar image fukachan · Mar 11, 2013 at 11:53 AM 0
Share

Thanks for the reply.

It looks like you can.

Either way I have the wrong?

The 3.5.7 version of Unity

For example,

 <style type="text/css">

Add the following in the

 div#unityPlayer {
     z-index:1;
     height: 600px;
     width: 960px;
 }
 div#hoge{
     position:absolute;
     z-index:2;
     top:5px;
     left:100px;
     padding:10px;
     width:300px;
     color:#00f;
 }

I tried to display the following div.

 <div id="hoge">
     <p>HT$$anonymous$$L test</p>
     <img src="img.png" />
 </div>

"hoge" will be shown on the back

avatar image ByteSheep · Mar 11, 2013 at 12:00 PM 0
Share

Hm thats strange which browser are you using?
It's working fine in firefox.. Just to get a better idea of what is happening could you give the #hoge div a background color and perhaps send a screen shot

avatar image fukachan · Mar 11, 2013 at 12:24 PM 0
Share

If i specify the "background", began to appear in the foreground.

Thank you.

 <div id="hoge" style="background-color: rgb(120,200,40);">
     <p>HT$$anonymous$$L test</p>
     <img src="img.png" />
 </div>

must always specify the background?

avatar image fukachan · Mar 11, 2013 at 12:26 PM 0
Share

I work well with firefox. I did not work properly in google chrome.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Graham-Dunnett · Mar 11, 2013 at 05:05 PM

The web browser plugin does not respect the css z-index property on all browsers. This is due to the way the 3d content is added to the window.

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

12 People are following this question.

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

Related Questions

How would I go about getting the results of a javascript variable to a string inside script? 3 Answers

How to play unity web export in android web view 1 Answer

Unity Web Player administrator privileges 0 Answers

Real Time Refresh from Web Portal 0 Answers

Embedding a game onto a website with XAMPP and PHP 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