浏览代码

Merge pull request #1579 from Unity-Technologies/sg/fix-duplicate-subgraphs

Fix initialization of vector properties when duplicating subgraphs
/main
GitHub 6 年前
当前提交
540a8964
共有 4 个文件被更改,包括 8 次插入2 次删除
  1. 1
      com.unity.shadergraph/CHANGELOG.md
  2. 4
      com.unity.shadergraph/Editor/Data/Graphs/Vector1MaterialSlot.cs
  3. 4
      com.unity.shadergraph/Editor/Data/Graphs/Vector2MaterialSlot.cs
  4. 1
      com.unity.shadergraph/Editor/Data/Graphs/Vector3MaterialSlot.cs

1
com.unity.shadergraph/CHANGELOG.md


- Deserialization of subgraphs now works correctly.
- Sub graphs are now suffixed with (sub), so you can tell them apart from other nodes.
- The preview of a node does not obstruct the selection outliner anymore.
- You can now copy, paste, and duplicate sub-graph nodes with vector type input ports.
- If the current render pipeline is not compatible, master nodes now display an error badge.
- The preview shader now only considers the current render pipeline. Because of this there is less code to compile, and therefore the preview shader will compile faster.
- When you rename a shader graph or sub shader graph locally on your disk, the title of the Shader Graph window, black board, and preview also updates.

4
com.unity.shadergraph/Editor/Data/Graphs/Vector1MaterialSlot.cs


[SerializeField]
float m_DefaultValue;
[SerializeField]
{}
{
}
public Vector1MaterialSlot(
int slotId,

4
com.unity.shadergraph/Editor/Data/Graphs/Vector2MaterialSlot.cs


[SerializeField]
Vector2 m_DefaultValue;
[SerializeField]
{}
{
}
public Vector2MaterialSlot(
int slotId,

1
com.unity.shadergraph/Editor/Data/Graphs/Vector3MaterialSlot.cs


[SerializeField]
private Vector3 m_DefaultValue;
[SerializeField]
string[] m_Labels;
public Vector3MaterialSlot()

正在加载...
取消
保存