报错信息:
Assets\PostProcessing\Editor\PropertyDrawers\MinDrawer.cs(6,34): error CS0104: 'MinAttribute' is an ambiguous reference between 'UnityEngine.PostProcessing.MinAttribute' and 'UnityEngine.MinAttribute'
网上说法很多,说PostProcessing版本太低,需要升到V2版本;但是换了之后报错依然存在。
然后又有人说V2版不是很稳定……等等;
最后在官方论坛上找到了答案:
https://forum.unity.com/threads/post-processing-stack-error.554926/

非常感谢提供解决方案的这位小哥哥。
就是将MinDrawer.cs里面所有的MinAttribute改成UnityEngine.PostProcessing.MinAttribute。
再次运行,OK!完美؏؏☝ᖗ乛◡乛ᖘ☝؏؏
本文解决了一个在Unity中使用PostProcessing V2版本时出现的编译错误问题,通过修改MinDrawer.cs文件中的MinAttribute引用,成功解决了冲突并使项目能够正常运行。

776

被折叠的 条评论
为什么被折叠?



