浏览代码

Rename Gradient Asset Node > Gradient Node

/main
Matt Dean 7 年前
当前提交
90f19e2e
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 2
      com.unity.shadergraph/Editor/Data/Graphs/GradientShaderProperty.cs
  2. 8
      com.unity.shadergraph/Editor/Data/Nodes/Input/Gradient/GradientNode.cs

2
com.unity.shadergraph/Editor/Data/Graphs/GradientShaderProperty.cs


public override INode ToConcreteNode()
{
return new GradientAssetNode { gradient = value };
return new GradientNode { gradient = value };
}
}
}

8
com.unity.shadergraph/Editor/Data/Nodes/Input/Gradient/GradientNode.cs


namespace UnityEditor.ShaderGraph
{
[Title("Input", "Gradient", "Gradient Asset")]
public class GradientAssetNode : AbstractMaterialNode, IGeneratesFunction
[Title("Input", "Gradient", "Gradient")]
public class GradientNode : AbstractMaterialNode, IGeneratesFunction
{
[SerializeField]
private float m_Value;

public GradientAssetNode()
public GradientNode()
name = "Gradient Asset";
name = "Gradient";
UpdateNodeAfterDeserialization();
}

正在加载...
取消
保存