May 21

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.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>