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!
Answer by bravo075 · Oct 16, 2018 at 04:20 PM
I wanna bump this, I'm looking for a way to do this in the editor also.
Answer by Jeshira · Apr 12, 2019 at 12:34 AM
You can find Unity's Custom Inspector on GitHub : LODGroupEditor.cs
Answer by schirDev · Feb 20, 2020 at 07:37 PM
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.
Your answer
Follow this Question
Related Questions
How do I take out a UI Slider's value? 0 Answers
lerp a float value of keyup 2 Answers
Slider with filter / search engine -1 Answers
Slider value help 0 Answers
Make a 2D side panel in a 3D game 1 Answer