浏览代码

Delete BoundInputVectorcontrolView which was a dumplicate of LabelSlotControlView

/main
Jens Holm 6 年前
当前提交
5d32dbf0
共有 11 个文件被更改,包括 7 次插入44 次删除
  1. 2
      com.unity.shadergraph/Editor/Data/Graphs/BitangentMaterialSlot.cs
  2. 2
      com.unity.shadergraph/Editor/Data/Graphs/BoundVector3MaterialSlot.cs
  3. 3
      com.unity.shadergraph/Editor/Data/Graphs/NormalMaterialSlot.cs
  4. 2
      com.unity.shadergraph/Editor/Data/Graphs/PositionMaterialSlot.cs
  5. 2
      com.unity.shadergraph/Editor/Data/Graphs/TangentMaterialSlot.cs
  6. 2
      com.unity.shadergraph/Editor/Data/Graphs/VertexColorMaterialSlot.cs
  7. 2
      com.unity.shadergraph/Editor/Data/Graphs/ViewDirectionMaterialSlot.cs
  8. 16
      com.unity.shadergraph/Editor/Drawing/Views/Slots/BoundInputVectorControlView.cs
  9. 11
      com.unity.shadergraph/Editor/Drawing/Views/Slots/BoundInputVectorControlView.cs.meta
  10. 7
      com.unity.shadergraph/Editor/Resources/Styles/Controls/BoundInputVectorSlotControlView.uss.meta
  11. 2
      com.unity.shadergraph/Editor/Resources/Styles/Controls/BoundInputVectorSlotControlView.uss

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


public override VisualElement InstantiateControl()
{
return new BoundInputVectorControlView(space + " Space");
return new LabelSlotControlView(space + " Space");
}
public override string GetDefaultValue(GenerationMode generationMode)

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


public override VisualElement InstantiateControl()
{
return new BoundInputVectorControlView(space + " Space");
return new LabelSlotControlView(space + " Space");
}
protected override string ConcreteSlotValueAsVariable(AbstractMaterialNode.OutputPrecision precision)

3
com.unity.shadergraph/Editor/Data/Graphs/NormalMaterialSlot.cs


using System;
using UnityEditor.ShaderGraph.Drawing.Slots;
using UnityEngine.Experimental.UIElements;
using UnityEngine;
namespace UnityEditor.ShaderGraph
{

public override VisualElement InstantiateControl()
{
return new BoundInputVectorControlView(space + " Space");
return new LabelSlotControlView(space + " Space");
}
public override string GetDefaultValue(GenerationMode generationMode)

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


public override VisualElement InstantiateControl()
{
return new BoundInputVectorControlView(space + " Space");
return new LabelSlotControlView(space + " Space");
}
public override string GetDefaultValue(GenerationMode generationMode)

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


public override VisualElement InstantiateControl()
{
return new BoundInputVectorControlView(space + " Space");
return new LabelSlotControlView(space + " Space");
}
public override string GetDefaultValue(GenerationMode generationMode)

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


public override VisualElement InstantiateControl()
{
return new BoundInputVectorControlView("Vertex Color");
return new LabelSlotControlView("Vertex Color");
}
public override string GetDefaultValue(GenerationMode generationMode)

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


{}
public override VisualElement InstantiateControl()
{
return new BoundInputVectorControlView(space + " Space");
return new LabelSlotControlView(space + " Space");
}
public override string GetDefaultValue(GenerationMode generationMode)

16
com.unity.shadergraph/Editor/Drawing/Views/Slots/BoundInputVectorControlView.cs


using System;
using UnityEditor.Graphing;
using UnityEditor.Experimental.UIElements;
using UnityEngine.Experimental.UIElements;
namespace UnityEditor.ShaderGraph.Drawing.Slots
{
public class BoundInputVectorControlView : VisualElement
{
public BoundInputVectorControlView(string label)
{
AddStyleSheetPath("Styles/Controls/BoundInputVectorSlotControlView");
Add(new Label(label));
}
}
}

11
com.unity.shadergraph/Editor/Drawing/Views/Slots/BoundInputVectorControlView.cs.meta


fileFormatVersion: 2
guid: 959b99492a9b6074e842a51afecee9b0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

7
com.unity.shadergraph/Editor/Resources/Styles/Controls/BoundInputVectorSlotControlView.uss.meta


fileFormatVersion: 2
guid: ee3e6f87fab5bc2448bffc0d4294df69
ScriptedImporter:
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}

2
com.unity.shadergraph/Editor/Resources/Styles/Controls/BoundInputVectorSlotControlView.uss


BoundInputVectorControlView > Label {
}
正在加载...
取消
保存