Using the SRP Code Package: Class or constructor is inaccessible due to its protection level

Hello everyone,

I’m trying to copy the HDRP into a new custom RP. I added the HDRP package via Package Manager and I started by copying the HDRenderPipelineAsset class into a new RenderPipelineAsset class called ExampleRenderPipelineAsset.

However, I can’t seem to fix “X is inaccessible due to its protection level” errors which appear everytime a class from the HDRP is used as a parameter or return value.

Here’s my custom RenderPipelineAsset: ExampleRenderPipelineAsset - Pastebin.com

Here’s the original HDRP asset: Graphics/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipelineAsset.cs at v10.2.2 · Unity-Technologies/Graphics · GitHub

I’ve tried different syntaxes for getters and setters and removing the internal keyword from them and the [SerializeField] macro but none worked. If you have any ideas please let me know!

Unity 2020.2.1f1 and HDRP 10.2.2.

I have never tried to implement my own render pipeline yet. However the class is a partial class and most likely consists of several .cs files. You may be missing some of them.