MS Webbrowser control Unity WebPlayer

Hi All.

I am working on an online unity game.

I need to make the game downloadable and work from local files so that the user does not have to download the unity3d files everytime.

All of this is working, but there is a problem.

We have click events on Game Objects. When playing the game outside of the local application in IE, Chrome, etc, mouse clicks on these game objects work without problems. In the application however, you have to double click and THEN click on the game object to fire the click event (Mouse Down).

This is only happening to game objects. GUI buttons work on the first click, and the mouse over events are firing without a problem on the game objects.

Does anyone know why this might be happening?

Hi all

I noticed that this problem is also happening in the Chrome webbrowser.

Any ideas?

The script used to capture the mouse down event is:

function OnMouseDown () {
Debug.Log(“Show something”);
}

As mentioned previously this works in IE and FireFox, but not in the MS webbrowser control OR Chrome

This bug has probably already been reported and you might find that OnMouseDown works OK when the webplayer is in fullscreen. However, a reproducing case was not supplied by the last person who reported it. It would be great if you could file a new bug report for this issue (menu: Help > Report A Bug/Problem), especially if you are using the beta version of Unity 3.0.

Hi

Thank you for the reply.

For anyone who might have this problem in the future, the solution is quite simple.

The form that contains the webbrowser control (v2.0) should not be embedded in a parent form.

For some reason this causes the triple click problem.

Happy coding!