Hi everyone.
I’m trying to create an asset for the Asset Store, that will work with Standard, URP, and HDRP pipelines.
And I would like to know best practices and know-how on this topic.
What I already have is this script, which sets the project’s defines according to the currently active pipeline in Graphics settings:
which allows me to run the right code for different pipelines.
Problem:
I use Assembly Definition files (.asmdef) to structure code.
My code needs references to URP features. So I need to reference “Unity.RenderPipelines.Universal.Runtime” assembly. But this assembly might not be present in the project (which is logical, if project uses Standard pipeline).
The same problem with HDRP.
Any ideas on how to solve this situation?