Can I fix "ShaderKeyword.GetGlobalKeywordName is deprecated" warning?

Avatar
  • updated

When I'm using vscode it complains that ShaderKeyword.GetGlobalKeywordName is deprecated and ShaderKeyword.name should be used.

It's not a big issue or anything, but i'm trying to make the problems list as clean as possible.

If i replace as it recommends it becomes and error.

Is there a way that I can make the warning go away?

Image 569

Reporting a bug? please specify Unity version:
2021.2.15f1
Reporting a bug? please specify Shapes version:
4.1.3
Reporting a bug? please specify Render Pipeline:
Built-in render pipeline
Avatar
João Artur Silva
Quote from Freya Holmér

Thanks a lot! 

Avatar
Freya Holmér creator