mathe/Library/PackageCache/com.unity.shadergraph@14.0.8/Editor/Drawing/Views/FloatField.cs

14 lines
307 B
C#
Raw Normal View History

2024-09-20 20:30:10 +02:00
using System.Globalization;
namespace UnityEditor.ShaderGraph.Drawing
{
class FloatField : UnityEngine.UIElements.DoubleField
{
protected override string ValueToString(double v)
{
return ((float)v).ToString(CultureInfo.InvariantCulture.NumberFormat);
}
}
}