Create and reference assembly (.asmdef) files at editor-time
Hello,
I'd like to import the Universal Render Pipeline package at runtime, then create a UniversalRenderPipelineAsset.asset file and assign it to the Graphics Settings.
What I'm trying to accomplish is to access the UniversalRenderPipelineAsset.cs script that would allow me to instantiate a new UniversalRenderPipelineAsset.asset file, I also need to create an assembly file inside my Editor folder and then reference the Unity.RenderPipelines.Universal.Runtime.asmdef assembly file to it.
I tried to use the Assembly Constructor Api but I'm not sure I'm using it correctly and not even sure it does what I need (i.e. create a new .asmdef file at editor-time).
A problem is that event though I can find the path of the Unity.RenderPipelines.Universal.Runtime.asmdef file, I don't know how to retrieve it as an Assembly object then (so I can pass it to the Assembly Constructor as a reference).
Am I trying to do something possible at all?
Thanks in advance and have a nice day.