- Home /
Cursor disappearing in webplayer
Hi, folks! I have a problem with cursor disappearing in webplayer. I need to show custom cursors in my webplayer app, so i'm doing it this way:
I'm checking if cursor located inside webplayer object. If true - i'm hiding system cursor ( Screen.showCursor = false; ) and showing custom cursor via GUI.DrawTexture.
Everything is fine, until i do not open another page tab in my browser. When i'm moving cursor over another tab page in browser unity player still gets event "cursor located inside webplayer object" - and hides it! To my mind this bug appeared in Unity 3.2.
I tried to fix this by getting javascript events, like window.blur, window.focus, document.blur, document.focus, but it doesn't work, if webplayer located inside iframe webpage. And the problem is that iframe is only way to place my app in social networks, like facebook.com or vk.com .
Live demo : http://apps.facebook.com/transportergame/
I also noticed the webplayer still seems to think it's 'focused' if you open an other tab in the same window.
Your answer
Follow this Question
Related Questions
Problem with mouse cursor disappearing in webplayer 0 Answers
Unity Web Player distorts objects 0 Answers
Character spawn menu bug 0 Answers
Unity 3D Keep Crashing in every site! 1 Answer
Unity Web Player - Error when loading for the first time 1 Answer