Enum In Custom Skybox For HDRP

Currently writing a custom skybox for HDRP. The docs are generally pretty good, but I’ve run into an issue.

I’m trying to get an enum parameter into the UI, but there’s no enum parameter option listed in the volume component docs. Could always use a ClampedIntParameter, but that wouldn’t display correctly.

I made an attempt to just set up my own enum member variable that gets serialized that I can set with a custom UI element, but somehow I’m unable to actually set the serialized member variable from the editor. The editor popup comes up and I can select different values of the enum, but it doesn’t actually change the value in the SkySettings class.

Any ideas? Anybody had to do this before? I can’t imagine that nobody else has tried to use an enum in a post processing effect or in a custom skybox for HDRP.

It is possible to have enums.
You have to declare your own parameter type for this to work.
Please see the implementaiton of Exposure Mode for example
here https://github.com/Unity-Technologies/Graphics/blob/master/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Components/Exposure.cs
and here https://github.com/Unity-Technologies/Graphics/blob/master/com.unity.render-pipelines.high-definition/Editor/PostProcessing/ExposureEditor.cs

Thanks for the reply! I ended up doing that, yeah—extending the base VolumeParameter class with my own enum implementation. Worked pretty well.