Replicating the gradient editor

I’m working on creating a custom editor for a day/night cycle tool I’m thinking of releasing on the asset store later, and in the process I created a class for effectively making gradients out of cubemaps (for blending between several cubemaps at certain points in the cycle) and I’d like to display/edit these like gradients rather than just lists of cubemaps and timings, as it’s a bit easier to visualize for the end user.

I don’t necessarily need to preview the texture blending together, but I would like to have my editor window contain the draggable handles along a bar like in the default gradient editor. I have a few ideas on how to recreate that, but it would be much simpler if there’s some way of getting those controls/shapes, without having to recreate it all from scratch!

Thanks, Rhys

I know that there is builtin functionality in the API for a color gradient, but it works strictly with colors so idk if you are able to translate a color into a cubemap in your case and vice versa?

Maybe working with animationcurves is an option here? You could make such an animation curve to define the ‘influence’ a particular cubemap has at a given time of day, as an alternative solution