Unity3D The type or namespace name `Exception' could not be found.

Unity3D使用C#编写的代码,在使用

try{

  

}catch(Exception e){

 

}

的时候,报以下错误:

解决方法:

在脚本中引入using System,如下图:

posted on 2016-02-23 16:01  陈二狗  阅读(2466)  评论(0编辑  收藏  举报

导航