Q: Why javascript file extension is .javascript?
A: Because Unity treats .js files as Unity script and will try to compile it.

Q: Does JSBinging support javascript debugging?
A: No. We did support debugging in old versions, but it's very hard to use.

Q: Unity says "DllNotFoundException"?
A:

If you are not on Windows, this is a bug, contact: answerwinner@gmail.com

If you are on Windows:

For Unity editor: copy DLL to unity install directory:

  • for 32bit editor: copy Assets/Plugins/x86/mozjs-31.dll to UnityInstallDir/Editor folder
  • for 64bit editor: copy Assets/Plugins/x86_64/mozjs-31.dll to UnityInstallDir/Editor folder

For Windows exe: you have to copy(or move) mozjs-31.dll to the folder containing .exe.

Problem still exists? Make sure you have "msvcr110.dll" in "C:\windows\system32". (the dll was built in visual studio 2012). If not, try install microsoft vc2012 runtime.

Q: Does JSBinding package contain full source?
A: Yes. Both C# and C code. Every single line of code is in your hand.

Q: Unity reports 100+ errors
A: Please locate at the first warning or error, that's the real error!

Q: Unity reports warning 'xxx was not found with (with IgnoreNamespace)'
A: Make sure xxx is in JSBindingSettings.classes and execute Assets | JavaScript | Gen Bindings again.

Q: Why overloaded method ends with something like '$$String$$Int'?
A: It is SharpKit's style. SharpKit is a C# compiler compiling C# to javascript. Learn more: sharpkit.net

Q: Unity reports error 'GenericTypeCache.getMethod(someType, someMethod) failed.'
A: This error may occur when you are tring to run app on iOS with IL2CPP. You may have to add something to Assets/JSBinding/link.xml. For more information, see http://docs.unity3d.com/Manual/iphone-playerSizeOptimization.html.

Q: Errors occur when building for Windows exe / Mac OS bundle / iOS xcode project / Android apk.
A: First, remember to click Assets | JavaScript | Gen Bindings. Or try to add code to JSBindingSettings.IsDiscard() or JSBindingSettings.IsSupportByDotNet2SubSet() or JSBindingSettings.NeedGenDefaultConstructor().

Q: This error occurs after menu Assets | JavaScript | Gen Bindings:
The type or namespace name `C' does not exist in the namespace `NS'. Are you missing an assembly reference?
A: The type C can only be accessd through reflection. You should add this type to JSBindingSettings.IsDiscard(), and optionaly add it to MissingClasses.javascript.

back to: JSBinding / Home

JSBinding / FAQ & Trouble Shooting的更多相关文章

  1. Linux 常见的trouble shooting故障排错

    Linux 常见的trouble shooting故障排错 备份开机所必须运行的程序对一个运维人员来说是非常有必要的.在实际生产环境中,系统和数据基本都是安装在不同的硬盘上面,因为企业最关心的还是数据 ...

  2. Trouble Shooting的一些感想(实时补充)

    最近一直做两个产品功能的Merge工作,代码Merge过来之后,发现了很多问题.经过Trouble Shooting,最终发现归根结底都是我们Merge的问题,例如有的Code没有Merge过来,Me ...

  3. neutron trouble shooting - ip can not ping

    neutron创建了一个router后,显示列表如下: [root@controller01 keystone]# neutron router-port-list router +--------- ...

  4. rsyslog trouble shooting

    openstack,swift的log不输出了.trouble shooting过程 , 发现我们的程序 /var/log/swift/proxy.log等总是不输出log. 因为log rsyslo ...

  5. pydevd 一次trouble shooting

    只是一次小的trouble shooting. 關於python的遠程調試功能.但是由於思路混亂.浪費了許多時間,記錄一下整個過程.作爲改進的參考. 问题背景: 我之前一直在ubuntu上用pycha ...

  6. Ubuntu上Docker安装Trouble Shooting

    (我的环境是Mint7.1,相当于Ubuntu14.04) 1,首先,根据docker.com上的安装指导来安装docker,这里就不重复了,参考: https://docs.docker.com/i ...

  7. DG - dataguard trouble shooting的相关视图

    •V$DATAGUARD_STATS:显示dataguard统计信息 备库 SQL> select * from v$dataguard_stats; NAME VALUE UNIT TIME_ ...

  8. TROUBLE SHOOTING: FRM-30425

    关键字:Oracle Form buider FRM-30425 汇总 错误信息如下: FRM-30425: Summarized database item must reside in a blo ...

  9. nginx trouble shooting

    除去配置语法失误.逻辑失误 nginx中的大部分问题都是前端到后端联通性 curl 域名没反应 cyr@test:/etc/nginx/sites-enabled$ curl test.hehe.ex ...

随机推荐

  1. python selenium与自动化

    大学是学习过java,但是工作中没用,忘完了,而且哪怕以后有了机会,就是很不愿意去学这个语言,开始喜欢上了c#,但是随着学的升入,感觉.net太庞大了,要学习那么多,总感觉我学这个要做什么,感觉要做的 ...

  2. 解决maven生成的web项目下的servlet.jar与tomcat自带servlet.jar冲突的问题

    使用maven生成web工程后,编译需要下servlet-api.jar和jsp-api.jar文件. pom文件中的写法为: <dependency> <groupId>ja ...

  3. CoreJava学习笔记1-基本概念、对象和类

    一.    java的基本程序设计结构 (一)   java共有8种基本类型:4种整型,2种浮点类型,1种char,1种boolean. 1)       4种整型:byte(1).short(2). ...

  4. 使用恶意USB设备解锁 Windows & Mac 锁屏状态

    NSA专业物理入侵设备——USB Armory,可解锁任意锁屏状态的下的Windows和Mac操作系统,含最新发布的Windows10.及较早的Mac OSX El Capitan / Maveric ...

  5. 编程等宽字体Source Code Pro(转)

    Source Code Pro - 最佳的免费编程字体之一!来自 Adobe 公司的开源等宽字体下载     每一位程序员都有一套自己喜爱的代码编辑器与编程字体,譬如我们之前就推荐过一款"神 ...

  6. oracle length and lengthb

    LENGTH──返回以字符为单位的字符串长度. LENGTHB──返回以字节为单位的字符串长度,它和类型定义中的长度是一个概念,比如你定义的varchar2(10)中的10.在不同的数据库,因为字符集 ...

  7. PAT 1072. Gas Station (30)

    A gas station has to be built at such a location that the minimum distance between the station and a ...

  8. SE Homework 1 —An Error Impressed Me

    在对两个对象进行比较.判断是否相等时,直接用 == 放在两个对象中间,例如下面的代码: Infor i1 = new Infor(111,"AA"); Infor i2 = new ...

  9. iOS8: Ignore manifest download, already have bundleID

    在企业分发的app下载过程中,iOS8发现挂在官网上的企业版的app点击了提示是否安装应用程序,但始终安装不上程序,的device console发现安装的时候出现 LoadExternalDownl ...

  10. go语言文件操作,这期资料比较详细( 欢迎加入go语言群: 218160862 )

    go语言文件操作,这期资料比较详细 欢迎加入go语言群: go语言深圳群 golang深圳 218160862 点击加入 文件操作 func Open(name string) (file *File ...