From f9819e7942ea3a9765d5adbae0de31be3def54fa Mon Sep 17 00:00:00 2001 From: stardust motion <44144837+StardustMotion@users.noreply.github.com> Date: Tue, 7 Jul 2026 06:35:09 +0900 Subject: [PATCH] Fixed ColorPicker's precision not working that extra space prevents ToString("F") from evaluating properly --- Runtime/Scripts/Controls/ColorPicker/ColorLabel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Scripts/Controls/ColorPicker/ColorLabel.cs b/Runtime/Scripts/Controls/ColorPicker/ColorLabel.cs index 20411a7..8c98569 100644 --- a/Runtime/Scripts/Controls/ColorPicker/ColorLabel.cs +++ b/Runtime/Scripts/Controls/ColorPicker/ColorLabel.cs @@ -72,9 +72,9 @@ private void UpdateValue() private string ConvertToDisplayString(float value) { if (precision > 0) - return value.ToString("f " + precision); + return value.ToString("f" + precision); else return Mathf.FloorToInt(value).ToString(); } } -} \ No newline at end of file +}