在使用Terrain编辑器时出现:
MissingReferenceException: The object of type 'Material' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
自建了一个物理材质加入Terrain中,还是同样的报错。
全网只在官网论坛里找到找到一条对于此BUG的解决方法,是在脚本中添加判断非空执行
但是Terrain的脚本修改后无法保存,修改结束代码就消失。
虽然不影响程序的运行,但是每次运行结束都会报错,求大神解惑!!!