以 NGUI 的 UIEventListener 为例: 有一个类: using SharpKit.JavaScript; using UnityEngine; using System.Collections; [JsType(JsMode.Clr,"../StreamingAssets/JavaScript/SharpKitGenerated/z_temp/test0610.javascript")] public class test0610 : MonoBehaviour {…
运行时出现: Return a "System.Xml.XmlIteratorNodeList" to JS failed. Did you forget to export that class? 答:将这个类加入到 JSBindingSettings.classes 数组后运行一下菜单 JSB | Generate JS and CS Bindings. 特殊情况1:如果这个类并不存在,或者是被 DLL 隐藏了,导致无法添加,那么请添加他的基类.比如上面的 System.Xml.X…
Serialization of List<T> is not supported. 1 public int v; // SUPPORTED 2 public GameObject go; // SUPPORTED 3 public Transform trans; // SUPPORTED 4 public int[] arrInt; // SUPPORTED 5 public Vector3 v; // SUPPORTED 6 [Serializable] 7 public struct…