- Home /
Getting focus on web player
Hey guys, I'm currently working on a keyboard-based game wtih HTML UIs.
Basically, there is no button or something requires a click inside the unity.
Since my game is keyboard-based, I need some kind of way to acquire focus from web page.
You know, if you don't click on the unity web player, focus is still on the web page
and that means keyboard input will not be delivered to the web player unless user click on it.
What exactly I need is that, get keyboard inputs when page is loaded. So, here is what I'm asking.
1. Is there any way to acquire focus from unity side?
2. Or can I intercept all the inputs on a web page from unity side?
3. For the last shot, can I render html and javascript on unity web player?
Hope there's someone who can help me out.
Thanks.