RedditPP Mascot

RedditPP

r/unity • … • u/azshall

HDRP Shader Graph Custom Inspector help

Hello!

I am creating some custom shaders for our team with HDRP Shader Graph and we'd like to wrap them in custom inspectors.

All works fine, I can get all my properties setup how I want, etc, etc... The problem I am running into though is getting the **Surface Options** and **Advanced Options** in the inspector. After doing a lot of digging I found where they're generating this stuff

![img](puuvftbxbsr61 "These are the Surface Options parameters I am trying to inject into my custom inspector.")

`Packages/com.unity.render-pipelines.high-definition/Editor/Material/Unlit/ShaderGraph/HDUnlitGUI.cs`

However when I go to try and use any of it, I can't. They've marked the class as internal.

Has anyone had any success at replicating these options in their own custom inspectors? Thanks!

​

\*Edit: Looks like Unity 2021 has made the classes public and accessible for use! Good news!

— 0