Search Unity

Question Warning "Ignoring duplicate keyword line ~~~" when creating new shader graph

Discussion in 'Shader Graph' started by snsnsnsn, Dec 20, 2022.

  1. snsnsnsn

    snsnsnsn

    Joined:
    Sep 17, 2018
    Posts:
    1
    Hello, I am currently having trouble resolving the above issue.

    How to reproduce
    1. create a new project with the "2D(URP)" template of 2022.2.1f1
    2. add shader graph 14.0.4 from the package manager.
    3. right-click and add an asset by following the procedure "Create->Visual Effects->Visual Effect Graph" directly under the Assets folder.
    4. in the shader file of the sub-asset of the created asset, I get the warning message "Ignoring duplicate keyword line 'multi_compile_fog __ FOG_LINEAR FOG_EXP FOG_EXP2'".

    Is there a solution to this problem?
    Thank you in advance for your help.

    221220230818_2DURP-22-2-1 -.jpg 221220230804_2DURP-22-2-1 -.jpg
     
  2. yanard18

    yanard18

    Joined:
    Jul 27, 2019
    Posts:
    13
    I also saw similar problems from people who have spine packages in their project. So maybe that's the problem