Windows phone 在WP上的Unity中调用实例化时出错?

Windows phone 在WP上的Unity中调用实例化时出错?,windows-phone,instantiation,Windows Phone,Instantiation,其他平台没有问题。但是,在Windows Phone上构建时: GameObject obj = (GameObject) Instantiate (Resources.Load ("Actions/" + actions, typeof (GameObject))); 我怀疑您的路径中有/,因为Windows目录使用\。通过引用你想通过编辑器中的一个字段实例化的预置来避免硬编码路径。我已经做到了。但这并不能解决问题。其他解决方案??? Object reference not set to

其他平台没有问题。但是,在Windows Phone上构建时:

GameObject obj = (GameObject) Instantiate (Resources.Load ("Actions/" + actions, typeof (GameObject)));

我怀疑您的路径中有
/
,因为Windows目录使用\。通过引用你想通过编辑器中的一个字段实例化的预置来避免硬编码路径。我已经做到了。但这并不能解决问题。其他解决方案???
Object reference not set to an instance of an object.