unity RPC 通信时出现RPC call failed because the script couldn't be loaded. The function was 'RequestMess
2014-08-12 14:51
417 查看
目前正在做一个UNITY项目,RPC通信时,出现了RPC call failed because the script couldn't be loaded. The function was 'RequestMess“错误。我是一个菜鸟,在网上查都说是脚本所绑定的对象不存在,但是我是绑定在camera 上的。为这个问题我调试,搜索了两天终于解决了
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/laugh.gif)
。
初学者在对文件进行操作时,稍不注意就会出现这个错误,经过分析,出现这种情况可能有两个原因:
一 在出错脚本所绑定的对象还有其它脚本时,请他的脚本加载不正常,像下面这样,我的功能脚本在PatientBodyExam,报了上面的错误。
二 当从其它模型或工程拷贝文件或材料到工程时,由于没有拷贝文件或模型的Meta file 文件,在新的工程中,系统会自动给材料生成一个meta file文件,但是meta file 里的材料的guid不是原来的GUID了,当运行时工程就找不到加进来的东西了。
这些只是我的小小经验,如有错误,欢迎扔砖指正!
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/laugh.gif)
。
初学者在对文件进行操作时,稍不注意就会出现这个错误,经过分析,出现这种情况可能有两个原因:
一 在出错脚本所绑定的对象还有其它脚本时,请他的脚本加载不正常,像下面这样,我的功能脚本在PatientBodyExam,报了上面的错误。
二 当从其它模型或工程拷贝文件或材料到工程时,由于没有拷贝文件或模型的Meta file 文件,在新的工程中,系统会自动给材料生成一个meta file文件,但是meta file 里的材料的guid不是原来的GUID了,当运行时工程就找不到加进来的东西了。
这些只是我的小小经验,如有错误,欢迎扔砖指正!
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/smile.gif)
相关文章推荐
- WCF:The caller was not authenticated by the service. ---> System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed.
- asp.net2.0发布到本机IIs报错:Failed to execute request because the App-Domain could not be created. Error: 0
- Failed to execute request because the App-Domain could not be created
- 进行网络出现问题Error Domain=kCFErrorDomainCFNetwork Code=-1022 "The resource could not be loaded because th
- IIS不能用,报错:Failed to execute request because the App-Domain could not be created. Error: 0×80070005 Access is denied
- 服务器端安装ASP.NET运行环境错误Failed to execute request because the App-Domain could not be created. Error: 0x80131902
- Failed to execute request because the App-Domain could not be created
- Failed to execute request because the App-Domain could not be created. Error: 0x80070002 系统找不到指定的文件。
- cocos2d-js 使用http时 出现 Response failed, error buffer: The resource could not be loaded because the Ap
- struts2出现 the request was rejected because its size (XXXX) exceeds the configured maximum (XXXX)
- Localizable.strings:0: error: read failed: The data couldn’t be read because it isn’t in the correct
- The module ... was loaded but the call to DllRegisterServer failed with error code 0x80070005
- the module '*' was loaded but the call to DllRegisterServer failed with error 0x80004005
- Failed to execute request because the App-Domain could not be created. Error: 0x80131902
- xxx couldn't be loaded because it has not been added to the build settings.
- asp.net2.0發佈到本機IIS報錯:Failed to execute request because the App-Domain could not be created. Error: 0×80070005 儲存被拒絕.
- fix errors 1088: “Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied” and 1334: “Exception: System.IO.FileLoadException”
- Failed to execute request because the App-Domain could not be created
- read failed: The data couldn’t be read because it isn’t in the correct format.
- Failed to execute request because the App-Domain could not be created. Error: 0x80131902 (方法2)