TAA_Unity_URP icon indicating copy to clipboard operation
TAA_Unity_URP copied to clipboard

Loading shader using `Shader.Find` works only in editor

Open DavidPeicho opened this issue 2 years ago • 0 comments

Hi,

Thanks for the package!

When building to a target device, this line will fail.

It's stated in the doc that shaders aren't included if not used. I think a nice and easy fix would be to create the material directly in the editor, so the shader is referenced.

Current Workaround

The current workaround is to simply go in the ProjectSettings and list the shader as always included.

DavidPeicho avatar Jul 08 '21 09:07 DavidPeicho