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
1
Question by Salem5 · Jan 10, 2011 at 12:43 PM · javascriptwebplayerdocumentation

Web Player Javascript Documentation

I really looked everywhere but can't seem to find a documentation about all the Javascript Webbroser functions, i.e. GetUnity().

I am sorry to bother you guys, I am able to dig up god knows what with searchengines but I am at my wits end in this case.

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

2 Replies

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

Answer by DaveA · Jan 11, 2011 at 12:21 AM

I think GetUnity() is defined right in the html itself, it's not like an API function or anything. Everything I've needed is here: http://unity3d.com/support/documentation/Manual/Unity%20Web%20Player%20and%20browser%20communication.html

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 Salem5 · Jan 15, 2011 at 11:17 AM 0
Share

I guess, I did misunderstand something, but the mainproblem is, that getObjectById() returns an object inside the by calling GetUnity(), and this Object seems to have some certain methods and $$anonymous$$embers which I'd love to find an overiew for. there should be something like "ReturnedObject.style.Height()" And I need info about these methods and any Fields that there are.

avatar image DaveA · Jan 15, 2011 at 05:44 PM 0
Share

Ah yes. You can poke at the DO$$anonymous$$ in a debugger to see such things, yet what are they? Good question. I would think most of them are 'standard', curious what custom methods they have...

avatar image
0

Answer by Thelo · Feb 22, 2011 at 03:34 AM

GetUnity() returns a DOM element which is either an <object> or an <embed>.

Here are the standard members that all DOM elements share:

http://www.w3schools.com/jsref/dom_obj_all.asp

Here are the members specific to <object>:

http://www.w3schools.com/jsref/dom_obj_object.asp

<embed> is not a standard DOM element, but it will at least support the standard DOM elements' members.

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

No one has followed this question yet.

Related Questions

Concerns about browser security due to making javascript calls to game from browser. 1 Answer

Webplayer requires multi-click to star? 1 Answer

Problem with UnityObject2.SendMessage | communicating with the web player 0 Answers

Detecting Webplayer's errors from Javascript 0 Answers

Install unity web player from flash 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