Visual c# unity activex problem

Well I had a read on the docs about the SendMessage communication, and I’m trying to do just that between unity’s activex and visual c# winform. How ever, I’m not really sure how to start off because there is 0 information about it.

Here’s the doc: http://unity3d.com/support/documentation/Manual/Unity%20Web%20Player%20and%20browser%20communication.html

Here’s a rough example from there which is for browser->unity communication:

	var unity = unityObject.getObjectById("UnityContent");
	unity.SendMessage("MyObject", "MyFunction", "Hello from a web page!");

But how on earth would I do thevar unity = unityObject.getObjectById("UnityContent");
part on visual c#?
I assume var will be object, “UnityContent” will be name of the activex control which is “axUnityWebPlayer1”, but what the hell is unityObject then? :confused:

Or am I doing everything wrong? I never tried communicating between visual c# form and unity before, so i don’t know.

Any help appreciated :S
Thanks

Or do I just do it like this?:

axUnityWebPlayer1.SendMessage("MyObject", "MyFunction", "Hello from a web page!");

where axUnityWebPlayer1 is name of the activex control

Yup, works fine. Thanks anyways :stuck_out_tongue:

can The call is successful?

can The call is successful?