I made a simple slider in control panel to modify the position and rotation of an object. I have no problem with the position, as the values are relative, but I'd like to show the rotation's values in degrees. Here is what I have in the rotation controls:
gui
.add(mesh.rotation, "x")
.min(Math.PI * -1)
.max(Math.PI)
.step(0.01)
.name("Rotar en X");
And this is how it is shown in the control panel:
The idea is to show -180 and 180

You're going to have to create a placeholder object that holds the values in degrees, then use the
.onChange()event to know when the value changes. That's when you can convert the degrees into radians to assign to your mesh rotation.I'm using
THREE.MathUtils.degToRad()to convert from degrees to radians.