问题:`System.IO.File‘ does not contain a definition for `ReadAllBytes‘
解决:
这是由于unity的build settings默认指定web player平台,而非standalone build。
file->build settings->选中相应的平台->switch platform即可。
参考资料:
Unity——编程中常见问题(永不止续)
原文:http://www.cnblogs.com/xiaobalang/p/6332868.html