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
2
Question by spencer lindsay · Dec 03, 2010 at 10:02 PM · javascriptwebplayerfullscreen

Full Screen Web Player?

Hey all,

I'm trying to run my web player full screen for a client. The folks over at HelloRacer do it but they're using the old embed code from R2.

This is what I'm trying to accomplish: http://www.helloracer.com/

I looked at UnityObject.js but, being a technical artist, emphasis on "artist", I couldn't figure it out.

The key line in the HTML generated by 3.0 seems to be:

        if (typeof unityObject != "undefined") {
        unityObject.embedUnity("unityPlayer", "desk_003.unity3d", 1920, 1080);
    }

There are a lot of CSS variables in the HTML, but twizzling them doesn't produce the desired effect (a full screen player).

I'm sure I'm missing something somewhere. I'm using 3.1.0f4 Pro license.

Ideas?

-Spence.

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 spencer lindsay · Dec 03, 2010 at 11:59 PM 0
Share

If it helps, this is the page I'm working on:

http://lindsaydigital.com/clients/infZ/desk_003/desk_003.html

7 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Maarten · Dec 03, 2010 at 10:03 PM

You can use '100%' instead of a number. This will set the full size.

Comment
Add comment · Show 3 · 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 spencer lindsay · Dec 03, 2010 at 11:55 PM 0
Share

Hmm. Not in my experience. When I replaced the X and Y resolutions with "100%" like this:

unityObject.embedUnity("unityPlayer", "desk_003.unity3d", 100%, 100%);

... it failed and displayed the "download Unity" badge.

avatar image Maarten · Dec 07, 2010 at 10:45 AM 0
Share

You need to put it between quotes "100%"

avatar image spencer lindsay · Dec 12, 2010 at 08:49 PM 0
Share

Right you are. Thanks $$anonymous$$aarten.

avatar image
2

Answer by jahroy · Apr 27, 2011 at 11:31 PM

Try adding height="100%" to the html element of your page. That solved my issue for Firefox and IE.

    html {
        padding: 0px;
        margin: 0px;
        height: 100%;
    }
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 dingben · Mar 28, 2011 at 11:06 AM

100% does not set full screen but full window.

to go full screen, you need to use Screen.SetResolution(y,x,true) or Screen.fullScreen

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
-3

Answer by bigkahuna · Dec 11, 2010 at 11:06 AM

Would someone mind posting an example html file? I tried replacing the pixel dimensions with "100%" and the width changes but the height doesn't.

Comment
Add comment · Show 5 · 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 spencer lindsay · Dec 12, 2010 at 08:56 PM 0
Share

@bigkahuna: try this:

if (typeof unityObject != "undefined") { unityObject.embedUnity("unityPlayer", "101210_pGroup_01.unity3d", "100%", "100%"); }

avatar image bigkahuna · Dec 13, 2010 at 12:31 AM 0
Share

@spencer - I've already tried that. Worked in Safari, but didn't in Firefox nor I$$anonymous$$ Anyone have a working example for 3.x?

avatar image spencer lindsay · Dec 13, 2010 at 06:45 PM 0
Share

Well, LB, you're right. Huh. Seems the "100%" code works on Safari only. Weird. O$$anonymous$$, looking deeper.

avatar image bigkahuna · Dec 14, 2010 at 05:29 PM 1
Share

Found a working example here: http://answers.unity3d.com/questions/25577/unity-3-0-webplayer-at-100

avatar image fireDude67 · Jan 13, 2011 at 02:42 AM 1
Share

Please do not post commments as answers

avatar image
0

Answer by The_r0nin_temp · May 28, 2011 at 05:37 PM

I get the following error when attempting to login using my Unity Forums login name here. I have cleared all cookies and re-loged at the forums. I still get:

 HTTP Status 401 - Authentication Failed: Unable to process claimed identity 'null'

 type Status report

 message Authentication Failed: Unable to process claimed identity 'null'

 description This request requires HTTP authentication (Authentication Failed: Unable to process claimed identity 'null').
 Apache Tomcat/6.0.32

Any help would be appreciated!

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 paprocjo · Dec 05, 2012 at 06:52 PM 0
Share

wrong place to post this

  • 1
  • 2
  • ›

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

GUIText Help 1 Answer

Stopping WebPlayer execution from javascript 0 Answers

BCE0044: expecting }, found 'private'. PLEASE HELP!!!!! 2 Answers

Sphere cast thing help please!!!! 1 Answer

How to open a video inside the unity scene? 1 Answer


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