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 tomekkie2 · Dec 20, 2011 at 09:32 AM · webplayerborderembedding

How to remove a dotted line around the WebPlayer

I get a dotted border around the WebPlayer when embedding with fixed size. It displays both on loading as well on application screen on Firefox but not in the IE. How to get rid of that? I have tried to set the params variable "bordercolor", but this is not the matter with that.

Comment
Add comment
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

4 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Bunny83 · Dec 20, 2011 at 02:33 PM

It just depends on how you embed your webplayer. The html file that is created by Unity does the embedding via javascript. This seems to cause FF to highlight the new added element. As soon as you click anywhere it disappears.

An example of my old sample project:

  • Normal Unity generated html

  • Self embedding without webplayer check

It's probably the way Unity embeds the webplayer afterwards. You might try some different ways (innerHTML, AddNode, ...)

Comment
Add comment · Show 2 · 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 tomekkie2 · Dec 20, 2011 at 02:41 PM 0
Share

Thanks. The second example doesn't generate the dotted line on FF. Will try to embedd that way.

avatar image tomekkie2 · Dec 20, 2011 at 02:55 PM 0
Share

But the second example doesn't display in I$$anonymous$$

avatar image
2

Answer by HCkev · Dec 23, 2011 at 10:49 PM

I found a solution, in your CSS, add this:

 #unityPlayer>* {
 outline: 0;
 }



And the dotted outline will be gone!

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 Ash-Blue · Feb 11, 2015 at 06:39 PM 0
Share

This is a good solution that provides immediate results. I feel like it should be marked as the correct answer.

avatar image
1

Answer by cgiguy · May 29, 2012 at 05:59 PM

I have found that targeting the object seems to work best. This is how you solve the issue for Flash object embedding as well:

 object, embed {
    outline: 0;
 }

Some of the other answers here didn't work for me, hopefully the above helps. K.

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
avatar image
0

Answer by ByteSheep · Dec 20, 2011 at 12:59 PM

The dotted border also does not appear in safari.. I couldn't find anything in the html that draws the border around the webplayer, so I believe it is the firefox browser that causes the border to appear. This seems to be unique to firefox and I don't think there's a way to get around it, in my case it doesn't really bother me, but tell me if you do find a solution ;)

Comment
Add comment · Show 2 · 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 tomekkie2 · Dec 20, 2011 at 01:13 PM 0
Share

Probably there is some way. Open with Firefox this link. No border there. http://www.structur3d.com/en/models/net-097.html#s3d_player_bloc

avatar image tomekkie2 · Dec 20, 2011 at 01:15 PM 0
Share

I mean there is a deliberate gray border, but no dotted border.

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

8 People are following this question.

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

Related Questions

Youtube videos in Unity WebGL 2020.3 0 Answers

flash preloader in unity web player 0 Answers

Embedding game on site 0 Answers

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

How to embed Web Player on Wix.com with the widget HTML iFrame/Embed? 2 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