mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
A little bit better number formatting
This commit is contained in:
@@ -353,7 +353,7 @@ namespace GlitchyEditor.EditWindows
|
||||
}
|
||||
|
||||
ImGui.PropertyTableStartNewProperty("Rotation");
|
||||
if (ImGui.Float3Editor("##Rotation", ref rotationEuler, resetValues: .Zero, dragSpeed: 0.1f, componentEnabled: componentEditable, format: .("%.3g°",)))
|
||||
if (ImGui.Float3Editor("##Rotation", ref rotationEuler, resetValues: .Zero, dragSpeed: 0.1f, componentEnabled: componentEditable, format: .("0.#####°",)))
|
||||
{
|
||||
transform.EditorRotationEuler = MathHelper.ToRadians(rotationEuler);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user