Custom Editor: LOD Group-type slider

Hi!

Is there a way to make a custom editor slider like the one in Unity’s LOD Group? https://docs.unity3d.com/uploads/Main/InspectorLODGroup.png

I’m making a procedural terrain texturing tool and I’d like the texture to change depending on elevation and I thought that would be handiest slider to use, since different textures would be nicely one after another and You could just drag the value where the texture changes.

Thanks in advance!

I wanna bump this, I’m looking for a way to do this in the editor also.

You can find Unity’s Custom Inspector on GitHub : LODGroupEditor.cs

I am looking for the same solution for a custom editor window. LODGroupEditor.cs is a very comprehensive script. It would be great to get a clearer answer for editor scripting beginners. To disassemble and understand this script probably exceeds my current capacities.