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 marius.treu · Apr 10, 2013 at 12:46 PM · webplayerloadingbrowserprogressbrowser communication

IsLoaded function for Browsercommunication?

Hi, is there any function that provides the isLoaded state for the unity webplayer useable for jQuery? Kind regards

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by ByteSheep · Apr 10, 2013 at 01:27 PM

http://docs.unity3d.com/Documentation/Manual/UnityWebPlayerandbrowsercommunication.html

Pay special attention to the section "Calling web page functions from Unity web player content".

Comment
Add comment · Show 6 · 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 marius.treu · Apr 10, 2013 at 02:41 PM 0
Share

Hi merry,

thx for responding. I actually know this send message function, but it's not what I'm searching.

I want to track the loading process if programm has finished the inital load (let's they after onInitial is done)!

avatar image ByteSheep · Apr 10, 2013 at 02:44 PM 0
Share

If I understood correctly then you would like the web browser to know when the first level/menu of the game has loaded, right? This will help you get the level load progress: http://docs.unity3d.com/Documentation/ScriptReference/Application.GetStreamProgressForLevel.html
This should be all that you need to call a javascript function on your webpage once the first level has finished loading.

avatar image marius.treu · Apr 10, 2013 at 04:22 PM 0
Share

the thing is, I want to check out of the browser if the unity-object is loading all these functions just works out of unity

avatar image ByteSheep · Apr 10, 2013 at 05:26 PM 0
Share

There is no way, that I am aware of, to detect whether the unity web player has finished loading your first level using only jquery.
You need to call a function on your webpage from unity once the game has loaded.
Here is an example:
Unity code:

 Application.ExternalCall( "UnityLoaded", "Unity has finished loading!" );

Javascript on your page:

 <script type="text/javascript" language="javascript">
 <!--
 function UnityLoaded( msg )
 {
     //unity has loaded..
     alert( msg );
 }
 -->
 </script>

Using jquery you won't be able to check if the web player has loaded your game like you would with normal html elements such as image files etc.

avatar image marius.treu · Apr 10, 2013 at 05:46 PM 0
Share

but whats about UnityObject2, aren't there any values stored? Whats about the firstFrameCallback? There is no topic in the documentation that speaks about it...

Show more comments

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

11 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

Related Questions

Texture loading via www.texture not loading! 2 Answers

Turn off / invalidate browser cache 2 Answers

How do I make my webplayer fill the entire browser window? 8 Answers

unityObject is null 2 Answers

How to prevent the Unity web player from auto loading 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