遇到无定义错误解决方案
2017-04-10 12:00
134 查看
error CS1061: Type `UnityEngine.Component' does not contain a definition for `material' and no extension method `material' of type `UnityEngine.Component' could be found. Are you missing an assembly reference?
这种无定义的问题,修改的时候只需要用GetComponenet<>(),就可以。
例如下面所示:
这种无定义的问题,修改的时候只需要用GetComponenet<>(),就可以。
例如下面所示:
相关文章推荐
- 关于.NET程序【程序遇到了用户定义的断点错误】的解决方案
- 头文件中定义全局变量出现重定义错误的解决方案
- Asp.net Ajax初学中遇到的版本错误及求解决方案
- MVC3.0 开发过程中遇到错误及解决方案(不断更新中。。。)
- Windows7“安装程序遇到错误:0x80070424 指定的服务未安装”解决方案
- Android开发-编译ICS时遇到collect2: ld returned 1 exit status错误解决方案
- 最近使用asp.net时遇到 "运行时错误" 解决方案
- 【学习Android遇到的错误】关于Unable to instantiate activity ComponentInfo错误解决方案
- ASPNET 2.0 AJAX Microsoft JScript 运行时错误: 'Sys' 未定义解决方案
- VS.NET2005打包程序遇到不可恢复的生成错误,解决方案
- VM中启动mac遇到的错误及解决方案
- AES解密中FlushFinalBlock遇到的错误 解决方案 和疑问
- ASP.NET Ajax中Sys未定义错误解决方案
- 制作cab安装包时出现“Windows ce向导遇到了错误……”的解决方案
- 在IIS7上部署ASP.NET MVC3网站应用程序遇到的错误及解决方案
- Asp.Net使用Ajax控件时遇到Sys未定义的错误的解决方案
- AJAX项目中在IE浏览器上遇到"Internet Explorer无法打开站点,已终止操作"错误解决方案
- CS1595: 已在多处定义...错误解决方案
- jBPM4中发布流程定义zip包遇到的错误
- WIN7重装mysql 遇到could not start the service mysql 错误的解决方案