I have searched solutions for some time past but couldn’t find fine result on Unity forums. How can i “set focus” to the Unity? (the “Run in Background” player option is not enough)
For example we walked in a first person game, and we have just arrived to a magic room, and the Unity calls a function from the HTML, so the HTML drop out a message, this function calling is the next:
Application.ExternalCall( "MagicRoom", "Welcom to the magic room!" );
Ok, we are so happy, click on the OK button, and… and here we go…
How can we automatically set the focus back to the Unity? So i don’t want to click on the Unity Web Player to start again the playing, i want to do it by a function - automatically.
This dummy example above is just one of the million Unity<->WebBrowser situation where could be a good choice to make the game playing continuous by this focus change.
i’m searching flash embedding solutions for now, maybe we could make more strange events to control unity if we could embed the unity webplayer inside a container flash…
but it’s just an idea, i hope will figure out it…
unfortunately the focus changes not works as i tried them. So these focus deliveries between the HTML objects and Unity Web Player are dead, becaus the Unity can’t running forward after getting the focus on the common way.
So it seams Unity needs a plus information to play tha game, and it’s called mouseDown event… There is no other powerful solution. So… somehow i have to find solution to simulate mouseDown events… if it’s possible…