May 21

Dave and how to call JS from C#

Posted in Silverlight      Comments Off on Dave and how to call JS from C#

Dave has a nice post showing how to call JS methods from C#. As I”ve also said in the past, it”s not really complicated, though I still don”t like it very much. Why don”t I like it? well, simply because it seems like one can”t hook up several methods to handle the event (which really sucks!).

I think it might be good to recall that if you call the RegisterScriptableObject, then you must garantee that all the properties exposed by the object that were annotated with the ScriptableAttribute attribute must be of type int, double, string or ScriptableObject. If you don”t do this, then you”ll end up getting an exception when you register your object.