Firstborn/Library/PackageCache/com.unity.shadergraph@12.1.8/Editor/Drawing/Views/FloatField.cs

14 lines
313 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
using UnityEditor.UIElements;
using System.Globalization;
namespace UnityEditor.ShaderGraph.Drawing
{
class FloatField : DoubleField
{
protected override string ValueToString(double v)
{
return ((float)v).ToString(CultureInfo.InvariantCulture.NumberFormat);
}
}
}