In the SpeedTree9Importer code, we are checking the name of the RenderPipeline asset to determine if the pipeline is URP, HDRP or Legacy. However, if a user is using a custom asset, renamed to something like "myRPAsset", our code breaks and switch to Legacy automatically.
We cannot use checks like "return GraphicsSettings.currentRenderPipeline is HDRenderPipelineAsset;" since this class is undefined at the script location (SpeedTree9Importer is in Mono Trunk, it's not aware of packages).
Steps to reproduce:
1. Create an HDRP project, using SpeedTree resources
2. In the Project Settings, use an HDRP RenderPipeline Asset with a basic name (like "testAsset")
3. Notice the errors in the console, about the missing shaders, and the pink tree(s).
Actual results:
Errors in the console and pink trees.
Expected results:
No errors and no pink trees.
Reproducible with versions:
Latest Trunk
Not reproducible with versions:
N/A
Can’t test with versions:
Tested on (OS):
Notes: