Unity 2019 发布到windows 10,发布显示成功,运行发布后的exe,提示如下错误。
Microsoft Media Foundation video decoding to texture disabled: graphics device is Null, only Direct3D 11 and Direct3D 12 (only on desktop) are supported.
WARNING: Shader Unsupported: 'Hidden/Nature/Terrain/Utilities' - All passes removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
ERROR: Shader Hidden/Nature/Terrain/Utilities shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
1、寻找 Hidden/Nature/Terrain/Utilities 这个shader 始终没有找到;
从package manager中没有找到Nature相关的引用;
2、打包一个新建的空项目,发布到windows,运行exe程序是正常运行的,排查unity工具问题;
尝试了N多种办法:
https://blog.csdn.net/u010816580/article/details/119868243
https://blog.csdn.net/honey199396/article/details/111470170
https://www.jianshu.com/p/692825914759
始终没有解决这个问题
现寻求专家帮助,让发布后的exe程序能够正常运行。
可能是版本的问题啊
更换一台电脑,打开相同的工程项目,发布的windows exe程序可以运行正常
不要使用默认的地形材质球即可解决