14 lines
307 B
C#
14 lines
307 B
C#
|
|
||
|
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);
|
||
|
}
|
||
|
}
|
||
|
}
|