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][1] 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][2] object then (so I can pass it to the [Assembly Constructor][3] as a reference).
Am I trying to do something possible at all?
Thanks in advance and have a nice day. [1]: https://docs.unity3d.com/ScriptReference/Compilation.Assembly-ctor.html [2]: https://docs.unity3d.com/ScriptReference/Compilation.Assembly.html [3]: https://docs.unity3d.com/ScriptReference/Compilation.Assembly-ctor.html
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][1] 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][2] object then (so I can pass it to the [Assembly Constructor][3] as a reference).
Am I trying to do something possible at all?
Thanks in advance and have a nice day. [1]: https://docs.unity3d.com/ScriptReference/Compilation.Assembly-ctor.html [2]: https://docs.unity3d.com/ScriptReference/Compilation.Assembly.html [3]: https://docs.unity3d.com/ScriptReference/Compilation.Assembly-ctor.html