天天看點

Unity2018導入PostProcessing報錯

報錯資訊:

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/

Unity2018導入PostProcessing報錯

非常感謝提供解決方案的這位小哥哥。

就是将MinDrawer.cs裡面所有的MinAttribute改成UnityEngine.PostProcessing.MinAttribute。

再次運作,OK!完美؏؏☝ᖗ乛◡乛ᖘ☝؏؏