Search Issue Tracker

By Design



Found in


Issue ID




ScriptedImporter Shader.Find returns null the first time the project is opened

Asset Importers



Priority: 2Necessary for shipping a final release


Severity: 2Core functionality majorly impacted

How to reproduce:
1. Download the user-submitted project ("")
2. Make sure that it doesn't already have a generated Library folder and open the project
3. Observe the Console Window

Expected result: The Shader is successfully found without any errors in the console
Actual result: Shader.Find returns the "shader" object as null

Reproduced in: 2019.2.0a7, 2019.1.0b5, 2018.3.7f1
Not reproducible in: 2017.4.22f1

Note: Reimporting the asset fixes the issue

Response avatar

Resolution Note:

This has never been intended to work since finding shaders by name bypasses dependency checking

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.