标签: texture2d
错误是
NullReferenceException:对象引用未设置为对象mapS.Start()的实例(在Assets / mapS.cs:25处)
代码中出现错误的部分
Texture2D img = Resources.Load(@"\images\1") as Texture2D Color try1 = img.GetPixel(0,0); print(try1.ToString());
答案 0 :(得分:1)
纹理的读/写选项已禁用