浏览代码
Workarounds for float formatting (e.g. 0.6 becoming a mess of decimal points) and label draggers (dragging not working on anything but first label on slot control)
/main
Workarounds for float formatting (e.g. 0.6 becoming a mess of decimal points) and label draggers (dragging not working on anything but first label on slot control)
/main
Peter Bay Bastian
7 年前
当前提交
508ec3ef
共有 5 个文件被更改,包括 64 次插入 和 20 次删除
-
20MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/VectorControl.cs
-
16MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/MultiFloatSlotControlView.cs
-
33MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MaterialGraph.uss
-
12MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/FloatField.cs
-
3MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/FloatField.cs.meta
|
|||
using UnityEditor.Experimental.UIElements; |
|||
|
|||
namespace UnityEditor.ShaderGraph.Drawing |
|||
{ |
|||
public class FloatField : DoubleField |
|||
{ |
|||
protected override string ValueToString(double v) |
|||
{ |
|||
return ((float)v).ToString(); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: f1ab7cad0fa94639990c801ecf80bff2 |
|||
timeCreated: 1512568655 |
撰写
预览
正在加载...
取消
保存
Reference in new issue