Is SendMessage Broken for C# functions with parameters?

In a configuration managing script I have the following call on Start()…

Application.ExternalCall("getClientSettingsURL");
        Application.ExternalCall("getClientItineraryURL");

This calls the functions below in the html page “hosting” my Unity Web Player …

function getClientSettingsURL(){
			// call this to get the client configuration XML URL
			var configPath = "http://unityserver/sld/RCCL_Settings.xml";	    
			GetUnity.SendMessage("InitializationManager", "setConfigXMLURL", configPath);
							
			}
			
			function getClientItineraryURL(){
			// call this to get the client itinerary XML URL
			var itineraryPath = "http://unityserver/sld/RCCL_Itinerary.xml";
			GetUnity.SendMessage("InitializationManager", "setItineraryXMLURL", itineraryPath);
						
			}

These in turn call back to the same configuration manager

void setConfigXMLURL(string clientSettings)
    {
    	settingsXmlURL = clientSettings;
    	print("settings: " + settingsXmlURL);
    }
    
    void setItineraryXMLURL(string itinerary)
    {
    	itineraryXmlURL = itinerary;
    	print("itinerary: " + itineraryXmlURL);
    }

My print statements never exectute on the funcitons called from my web page. If I put alert statements into the web page functions I can see my URLs are correct. If I put the alert functions AFTER the SendMessage functions in the web page stuff. The alerts never gets called. The SendMessage function is the hangup.

In addition to the functions listed in my web page I have the following 2 functions for toggling fullscreen and a render mode. These parameterless functions work just fine.

function switchToFullScreenMode() {
			// code here to cause the plugin to switch to full screen mode
				GetUnity().SendMessage("GUIobject", "switchToFullScreen", 0);
			}

			function switchToDrawerMode() {
			// code here to cause the plugin to switch to in drawer mode
				GetUnity().SendMessage("GUIobject", "switchToDrawer", 0);
			}

Any ideas what is going on?

–J

Nobody? I mucked up and put this here instead of the support forum, can admin or something move it there? This really has me in a bind and behind the 8 ball with no real way to debug anything.

Filed an official bug with simple example that fails. I’ll post resolution if there is any for anyone else that is interested.

FYI. In making the simple example I noticed that SendMessage from webpage function with a parameter (string is only thing I tested because that is what I need) fails going to both JS and C# functions in the Unity Web Player.

(Case # 35119)

I’m not sure but I think in Javascript you should use GetUnity().SendMessage() and not GetUnity.SendMessage() because GetUnity() is a function.