Search Unity

Bug Custom function 'Expected identifier as macro name' in 2020.2.2f1

Discussion in 'Shader Graph' started by hurjmdev, Feb 3, 2021.

  1. hurjmdev

    hurjmdev

    Joined:
    Dec 12, 2020
    Posts:
    8
    Hi,

    I download toon shader in https://github.com/ciro-unity/BotW-ToonShader which is introduced in Unite Copenhagen 2019.

    I try to use this in unity 2020.2.2f1 but I got warning 'Expected identifier as macro name' at custom function which is get main light.

    So I delete other function except 'MainLight' then it works fine.

    Is this bug or changed feature? Please let me know.