Hi,
is there any function that provides the isLoaded state for the unity webplayer useable for jQuery?
Kind regards
1 Answer
1http://docs.unity3d.com/Documentation/Manual/UnityWebPlayerandbrowsercommunication.html
Pay special attention to the section “Calling web page functions from Unity web player content”.
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)!
– marius.treuIf 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.
– ByteSheepthe thing is, I want to check out of the browser if the unity-object is loading all these functions just works out of unity
– marius.treubut whats about UnityObject2, aren't there any values stored? Whats about the firstFrameCallback? There is no topic in the documentation that speaks about it...
– marius.treuthe problem with your last solution is that if you do an externalCall, the browser (javascript) does not know what unity-object just fires that command. Imagine you have multiple unityobjects on screen..
– marius.treu