浏览代码

Add control view for bound input types

/main
Jens Holm 6 年前
当前提交
532c8de0
共有 4 个文件被更改,包括 41 次插入0 次删除
  1. 16
      com.unity.shadergraph/Editor/Drawing/Views/Slots/BoundInputVectorControlView.cs
  2. 11
      com.unity.shadergraph/Editor/Drawing/Views/Slots/BoundInputVectorControlView.cs.meta
  3. 7
      com.unity.shadergraph/Editor/Resources/Styles/Controls/BoundInputVectorSlotControlView.uss
  4. 7
      com.unity.shadergraph/Editor/Resources/Styles/Controls/BoundInputVectorSlotControlView.uss.meta

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


ScreenPositionSlotControlView > Label {
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
width: 54;
}

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}
正在加载...
取消
保存