maximum number (256) of shader keywords exceeded unity的报错解决方法
https://bitbucket.org/ArtIsDarkGames/shader-keywords-tool-unity3d/src/master/ https://eternity429.wordpress.com/2017/12/06/unity-shader-variant-system%E6%BD%9B%E8%97%8F%E9%9A%B1%E6%86%82/ 其中, multi_compile 及 shader_feature 都是定義keyword的功能,但其Build情況有所不同。 shader_feature 會根據專案內是否有同時使用到此keyword啟動、非啟動的狀態生成對應Variant,適合無須在Runtime中變動、僅需要在Editor中設定好的功能。 multi_compile 則會無論有無實際啟動keyword與否都會生成Variant。 如果你的keyword功能會在Runtime中動態切換,那麼需使用此項。 ------------------------------------------------------------------------------------------------------------------------- 一般大多數情況都是使用 shader_feature 足矣