浏览代码

Merge branch 'master' into node-bugfixes

# Conflicts:
#	MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MaterialGraph.uss
/main
Peter Bay Bastian 7 年前
当前提交
a4d1c27d
共有 84 个文件被更改,包括 1507 次插入1031 次删除
  1. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Vector2ShaderProperty.cs
  2. 5
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Vector3ShaderProperty.cs
  3. 5
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Vector4ShaderProperty.cs
  4. 5
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/VectorShaderProperty.cs
  5. 8
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Math/Interpolation/SmoothstepNode.cs
  6. 6
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Math/Round/StepNode.cs
  7. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/ChannelMixerControl.cs
  8. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/ColorControl.cs
  9. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/DielectricSpecularControl.cs
  10. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/EnumControl.cs
  11. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/EnumConversionControl.cs
  12. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/IntegerControl.cs
  13. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/SliderControl.cs
  14. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/ToggleControl.cs
  15. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/VectorControl.cs
  16. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/GraphInspectorView.cs
  17. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/MasterPreviewView.cs
  18. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/ShaderPropertyView.cs
  19. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/GraphEditorView.cs
  20. 27
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/MaterialGraphView.cs
  21. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/MaterialNodeView.cs
  22. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/PortInputView.cs
  23. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/ShaderPort.cs
  24. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/BooleanSlotControlView.cs
  25. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/ColorRGBSlotControlView.cs
  26. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/ColorSlotControlView.cs
  27. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/CubemapSlotControlView.cs
  28. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/MultiFloatSlotControlView.cs
  29. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/ScreenPositionSlotControlView.cs
  30. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/TextureSlotControlView.cs
  31. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/UVSlotControlView.cs
  32. 1001
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MaterialGraph.uss
  33. 8
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls.meta
  34. 254
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/GraphEditorView.uss
  35. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/GraphEditorView.uss.meta
  36. 89
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/GraphInspectorView.uss
  37. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/GraphInspectorView.uss.meta
  38. 49
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MasterPreviewView.uss
  39. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MasterPreviewView.uss.meta
  40. 3
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MaterialGraphView.uss
  41. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MaterialGraphView.uss.meta
  42. 146
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MaterialNodeView.uss
  43. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MaterialNodeView.uss.meta
  44. 115
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/PortInputView.uss
  45. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/PortInputView.uss.meta
  46. 195
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/ShaderPort.uss
  47. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/ShaderPort.uss.meta
  48. 31
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/ShaderPropertyView.uss
  49. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/ShaderPropertyView.uss.meta
  50. 8
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/BooleanSlotControlView.uss
  51. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/BooleanSlotControlView.uss.meta
  52. 61
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ChannelMixerControlView.uss
  53. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ChannelMixerControlView.uss.meta
  54. 26
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ColorControlView.uss
  55. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ColorControlView.uss.meta
  56. 10
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ColorRGBASlotControlView.uss
  57. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ColorRGBASlotControlView.uss.meta
  58. 10
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ColorRGBSlotControlView.uss
  59. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ColorRGBSlotControlView.uss.meta
  60. 12
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/CubemapSlotControlView.uss
  61. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/CubemapSlotControlView.uss.meta
  62. 54
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/DielectricSpecularControlView.uss
  63. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/DielectricSpecularControlView.uss.meta
  64. 22
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/EnumControlView.uss
  65. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/EnumControlView.uss.meta
  66. 26
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/EnumConversionControlView.uss
  67. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/EnumConversionControlView.uss.meta
  68. 14
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/IntegerControlView.uss
  69. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/IntegerControlView.uss.meta
  70. 20
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/MultiFloatControlView.uss
  71. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/MultiFloatControlView.uss.meta
  72. 16
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/MultiFloatSlotControlView.uss
  73. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/MultiFloatSlotControlView.uss.meta
  74. 52
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/SliderControlView.uss
  75. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/SliderControlView.uss.meta
  76. 12
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/TextureSlotControlView.uss
  77. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/TextureSlotControlView.uss.meta
  78. 24
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ToggleControlView.uss
  79. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ToggleControlView.uss.meta
  80. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/UVSlotControlView.uss
  81. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/UVSlotControlView.uss.meta
  82. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ScreenPositionSlotControlView.uss
  83. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ScreenPositionSlotControlView.uss.meta

4
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Vector2ShaderProperty.cs


get { return new Vector4(value.x, value.y, 0, 0); }
}
public override string GetPropertyDeclarationString(string delimiter = ";")
{
return string.Format("float2 {0}{1}", referenceName, delimiter);
}
public override PreviewProperty GetPreviewMaterialProperty()
{

5
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Vector3ShaderProperty.cs


get { return new Vector4(value.x, value.y, value.z, 0); }
}
public override string GetPropertyDeclarationString(string delimiter = ";")
{
return string.Format("float3 {0}{1}", referenceName, delimiter);
}
public override PreviewProperty GetPreviewMaterialProperty()
{
return new PreviewProperty(PropertyType.Vector3)

5
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/Vector4ShaderProperty.cs


get { return value; }
}
public override string GetPropertyDeclarationString(string delimiter = ";")
{
return string.Format("float4 {0}{1}", referenceName, delimiter);
}
public override PreviewProperty GetPreviewMaterialProperty()
{
return new PreviewProperty(PropertyType.Vector4)

5
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/VectorShaderProperty.cs


result.Append(")");
return result.ToString();
}
public override string GetPropertyDeclarationString(string delimiter = ";")
{
return string.Format("float4 {0}{1}", referenceName, delimiter);
}
}
}

8
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Math/Interpolation/SmoothstepNode.cs


}
static string Unity_Smoothstep(
[Slot(0, Binding.None, 0, 0, 0, 0)] DynamicDimensionVector A,
[Slot(1, Binding.None, 1, 1, 1, 1)] DynamicDimensionVector B,
[Slot(2, Binding.None, 0, 0, 0, 0)] DynamicDimensionVector T,
[Slot(0, Binding.None, 0, 0, 0, 0)] DynamicDimensionVector Edge1,
[Slot(1, Binding.None, 1, 1, 1, 1)] DynamicDimensionVector Edge2,
[Slot(2, Binding.None, 0, 0, 0, 0)] DynamicDimensionVector In,
Out = smoothstep(A, B, T);
Out = smoothstep(Edge1, Edge2, In);
}";
}
}

6
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Math/Round/StepNode.cs


}
static string Unity_Step(
[Slot(0, Binding.None, 1, 1, 1, 1)] DynamicDimensionVector A,
[Slot(1, Binding.None, 0, 0, 0, 0)] DynamicDimensionVector B,
[Slot(0, Binding.None, 1, 1, 1, 1)] DynamicDimensionVector Edge,
[Slot(1, Binding.None, 0, 0, 0, 0)] DynamicDimensionVector In,
Out = step(A, B);
Out = step(Edge, In);
}
";
}

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/ChannelMixerControl.cs


{
m_Node = node;
m_PropertyInfo = propertyInfo;
AddStyleSheetPath("Styles/Controls/ChannelMixerControlView");
m_ChannelMixer = (ChannelMixerNode.ChannelMixer)m_PropertyInfo.GetValue(m_Node, null);
m_OutChannel = 0;

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/ColorControl.cs


{
m_Node = node;
m_PropertyInfo = propertyInfo;
AddStyleSheetPath("Styles/Controls/ColorControlView");
if (propertyInfo.PropertyType != typeof(Color))
throw new ArgumentException("Property must be of type Color.", "propertyInfo");
label = label ?? ObjectNames.NicifyVariableName(propertyInfo.Name);

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/DielectricSpecularControl.cs


{
m_Node = node;
m_PropertyInfo = propertyInfo;
AddStyleSheetPath("Styles/Controls/DielectricSpecularControlView");
m_DielectricMaterial = (DielectricSpecularNode.DielectricMaterial)m_PropertyInfo.GetValue(m_Node, null);
if (propertyInfo.PropertyType != typeof(DielectricSpecularNode.DielectricMaterial))

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/EnumControl.cs


public EnumControlView(string label, AbstractMaterialNode node, PropertyInfo propertyInfo)
{
AddStyleSheetPath("Styles/Controls/EnumControlView");
m_Node = node;
m_PropertyInfo = propertyInfo;
if (!propertyInfo.PropertyType.IsEnum)

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/EnumConversionControl.cs


m_Node = node;
m_PropertyInfo = propertyInfo;
AddStyleSheetPath("Styles/Controls/EnumConversionControlView");
var currentValue = value;
var ec = (IEnumConversion) propertyInfo.GetValue(m_Node, null);

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/IntegerControl.cs


public IntegerControlView(string label, AbstractMaterialNode node, PropertyInfo propertyInfo)
{
AddStyleSheetPath("Styles/Controls/IntegerControlView");
m_Node = node;
m_PropertyInfo = propertyInfo;
if (propertyInfo.PropertyType != typeof(int))

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/SliderControl.cs


{
m_Node = node;
m_PropertyInfo = propertyInfo;
AddStyleSheetPath("Styles/Controls/SliderControlView");
m_DisplayMinMax = displayMinMax;
if (propertyInfo.PropertyType != typeof(Vector3))

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/ToggleControl.cs


{
m_Node = node;
m_PropertyInfo = propertyInfo;
AddStyleSheetPath("Styles/Controls/ToggleControlView");
if (propertyInfo.PropertyType != typeof(Toggle))
throw new ArgumentException("Property must be a Toggle.", "propertyInfo");

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Controls/VectorControl.cs


if (components == -1)
throw new ArgumentException("Property must be of type float, Vector2, Vector3 or Vector4.", "propertyInfo");
AddStyleSheetPath("Styles/Controls/MultiFloatControlView");
m_Node = node;
m_PropertyInfo = propertyInfo;

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/GraphInspectorView.cs


{
m_Graph = graph;
AddStyleSheetPath("Styles/MaterialGraph");
AddStyleSheetPath("Styles/GraphInspectorView");
var topContainer = new VisualElement {name = "top"};
{

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/MasterPreviewView.cs


this.clippingOptions = ClippingOptions.ClipAndCacheContents;
m_Graph = graph;
AddStyleSheetPath("Styles/MaterialGraph");
AddStyleSheetPath("Styles/MasterPreviewView");
m_PreviewRenderHandle = previewManager.masterRenderData;
m_PreviewRenderHandle.onPreviewChanged += OnPreviewChanged;

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/ShaderPropertyView.cs


{
this.graph = graph;
this.property = property;
AddStyleSheetPath("Styles/ShaderPropertyView");
var displayNameField = new TextField { name = "displayName", value = property.displayName };
displayNameField.OnValueChanged(OnDisplayNameChanged);

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/GraphEditorView.cs


public GraphEditorView(EditorWindow editorWindow, AbstractMaterialGraph graph, string assetName)
{
m_Graph = graph;
AddStyleSheetPath("Styles/MaterialGraph");
AddStyleSheetPath("Styles/GraphEditorView");
m_EditorWindow = editorWindow;
previewManager = new PreviewManager(graph);

27
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/MaterialGraphView.cs


{
public sealed class MaterialGraphView : GraphView, IDropTarget
{
public MaterialGraphView()
{
AddStyleSheetPath("Styles/MaterialGraphView");
serializeGraphElements = SerializeGraphElementsImplementation;
canPasteSerializedData = CanPasteSerializedDataImplementation;
unserializeAndPaste = UnserializeAndPasteImplementation;
deleteSelection = DeleteSelectionImplementation;
}
public MaterialGraphView(AbstractMaterialGraph graph) : this()
{
this.graph = graph;
}
public AbstractMaterialGraph graph { get; private set; }
public Action onConvertToSubgraphClick { get; set; }

public delegate void OnSelectionChanged(IEnumerable<INode> nodes);
public OnSelectionChanged onSelectionChanged;
public MaterialGraphView()
{
serializeGraphElements = SerializeGraphElementsImplementation;
canPasteSerializedData = CanPasteSerializedDataImplementation;
unserializeAndPaste = UnserializeAndPasteImplementation;
deleteSelection = DeleteSelectionImplementation;
}
public MaterialGraphView(AbstractMaterialGraph graph) : this()
{
this.graph = graph;
}
void SelectionChanged()
{

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/MaterialNodeView.cs


public void Initialize(AbstractMaterialNode inNode, PreviewManager previewManager, IEdgeConnectorListener connectorListener)
{
AddStyleSheetPath("Styles/MaterialNodeView");
AddToClassList("MaterialNode");
if (inNode == null)

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/PortInputView.cs


public PortInputView(MaterialSlot slot)
{
AddStyleSheetPath("Styles/PortInputView");
pickingMode = PickingMode.Ignore;
ClearClassList();
m_Slot = slot;

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/ShaderPort.cs


sealed class ShaderPort : Port
{
ShaderPort(Orientation portOrientation, Direction portDirection, Type type)
: base(portOrientation, portDirection, type) { }
: base(portOrientation, portDirection, type) { AddStyleSheetPath("Styles/ShaderPort"); }
MaterialSlot m_Slot;

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/BooleanSlotControlView.cs


public BooleanSlotControlView(BooleanMaterialSlot slot)
{
AddStyleSheetPath("Styles/Controls/BooleanSlotControlView");
m_Slot = slot;
Action changedToggle = () => { OnChangeToggle(); };
var toggleField = new UnityEngine.Experimental.UIElements.Toggle(changedToggle);

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/ColorRGBSlotControlView.cs


public ColorRGBSlotControlView(ColorRGBMaterialSlot slot)
{
AddStyleSheetPath("Styles/Controls/ColorRGBSlotControlView");
m_Slot = slot;
var colorField = new ColorField { value = new Color(slot.value.x, slot.value.y, slot.value.z, 0),
showEyeDropper = false, showAlpha = false };

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/ColorSlotControlView.cs


public ColorRGBASlotControlView(ColorRGBAMaterialSlot slot)
{
AddStyleSheetPath("Styles/Controls/ColorRGBASlotControlView");
m_Slot = slot;
var colorField = new ColorField { value = slot.value, showEyeDropper = false };
colorField.OnValueChanged(OnValueChanged);

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/CubemapSlotControlView.cs


public CubemapSlotControlView(CubemapInputMaterialSlot slot)
{
AddStyleSheetPath("Styles/Controls/CubemapSlotControlView");
m_Slot = slot;
var objectField = new ObjectField { objectType = typeof(Cubemap), value = m_Slot.cubemap };
objectField.OnValueChanged(OnValueChanged);

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/MultiFloatSlotControlView.cs


public MultiFloatSlotControlView(INode node, int components, Func<Vector4> get, Action<Vector4> set)
{
AddStyleSheetPath("Styles/Controls/MultiFloatSlotControlView");
m_Node = node;
m_Get = get;
m_Set = set;

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/ScreenPositionSlotControlView.cs


public ScreenPositionSlotControlView(ScreenPositionMaterialSlot slot)
{
AddStyleSheetPath("Styles/Controls/ScreenPositionSlotControlView");
m_Slot = slot;
var enumField = new EnumField(slot.screenSpaceType);
enumField.OnValueChanged(OnValueChanged);

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/TextureSlotControlView.cs


public TextureSlotControlView(Texture2DInputMaterialSlot slot)
{
m_Slot = slot;
AddStyleSheetPath("Styles/Controls/TextureSlotControlView");
var objectField = new ObjectField { objectType = typeof(Texture), value = m_Slot.texture };
objectField.OnValueChanged(OnValueChanged);
Add(objectField);

1
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/UVSlotControlView.cs


public UVSlotControlView(UVMaterialSlot slot)
{
AddStyleSheetPath("Styles/Controls/UVSlotControlView");
m_Slot = slot;
var enumField = new EnumField(slot.channel);
enumField.OnValueChanged(OnValueChanged);

1001
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MaterialGraph.uss
文件差异内容过多而无法显示
查看文件

8
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls.meta


fileFormatVersion: 2
guid: e4de09b690b402c4bab6110751305df5
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

254
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/GraphEditorView.uss


GraphEditorView {
flex-direction: column;
background: #f00;
flex: 1;
}
GraphEditorView #TitleBar {
}
GraphEditorView > #content {
flex: 1;
flex-direction: row;
}
GraphEditorView > #content > #GraphView {
flex: 1;
}
GraphEditorView > #content > #inspector {
width: 400;
}
.edge.fromMatrix4, .edge.fromMatrix3, .edge.fromMatrix2 {
edge-output-color: #8FC1DF;
}
.edge.toMatrix4, .edge.toMatrix3, .edge.toMatrix2 {
edge-input-color: #8FC1DF;
}
.edge.fromTexture2D, .edge.fromCubemap {
edge-output-color: #FF8B8B;
}
.edge.toTexture2D, .edge.toCubemap {
edge-input-color: #FF8B8B;
}
.edge.fromVector4 {
edge-output-color: #FBCBF4;
}
.edge.toVector4 {
edge-input-color: #FBCBF4;
}
.edge.fromVector3 {
edge-output-color: #F6FF9A;
}
.edge.toVector3 {
edge-input-color: #F6FF9A;
}
.edge.fromVector2 {
edge-output-color: #9AEF92;
}
.edge.toVector2 {
edge-input-color: #9AEF92;
}
.edge.fromVector1 {
edge-output-color: #84E4E7;
}
.edge.toVector1 {
edge-input-color: #84E4E7;
}
.edge.fromBoolean {
edge-output-color: #9481E6;
}
.edge.toBoolean {
edge-input-color: #9481E6;
}
#resizeBorderFrame > .resize {
background-color: rgba(0, 0, 0, 0);
position-type: absolute;
}
#resizeBorderFrame > .resize.vertical {
cursor: resize-vertical;
height: 10;
position-left: 10;
position-right: 10;
padding-top: 0;
padding-bottom: 0;
margin-top: 0;
margin-bottom: 0;
}
#resizeBorderFrame > .resize.horizontal {
cursor: resize-horizontal;
width: 10;
position-top: 10;
position-bottom: 10;
padding-left: 0;
padding-right: 0;
margin-left: 0;
margin-right: 0;
}
#resizeBorderFrame > .resize.diagonal {
width: 10;
height: 10;
}
#resizeBorderFrame > .resize.diagonal.top-left {
cursor: resize-up-left;
position-top: 0;
position-left: 0;
}
#resizeBorderFrame > .resize.diagonal.top-right {
cursor: resize-up-right;
position-top: 0;
position-right: 0;
}
#resizeBorderFrame > .resize.diagonal.bottom-left {
cursor: resize-up-right;
position-bottom: 0;
position-left: 0;
}
#resizeBorderFrame > .resize.diagonal.bottom-right {
cursor: resize-up-left;
position-bottom: 0;
position-right: 0;
}
#resizeBorderFrame > .resize.vertical.top {
position-top: 0;
}
#resizeBorderFrame > .resize.vertical.bottom {
position-bottom: 0;
}
#resizeBorderFrame > .resize.horzontal.left {
position-left: 0;
}
#resizeBorderFrame > .resize.horizontal.right {
position-right: 0;
}
.reszieBorderFrame {
position-type: absolute;
position-top: 0;
position-right: 0;
position-bottom: 0;
position-left: 0;
}
.nodeEditor {
border-color: rgb(79, 79, 79);
border-bottom-width: 1;
padding-top: 10;
}
NodeEditorHeaderView {
padding-left: 16;
padding-right: 16;
padding-bottom: 10;
flex-direction: row;
}
NodeEditorHeaderView > #preType {
margin-left: 10;
}
NodeEditorHeaderView > #preType,
NodeEditorHeaderView > #postType,
NodeEditorHeaderView > #type {
text-color: rgb(180, 180, 180);
}
NodeEditorHeaderView > #title {
text-color: rgb(180, 180, 180);
font-style: bold;
}
.nodeEditor > .section {
padding-bottom: 10;
}
.nodeEditor > .section.hidden {
height: 0;
padding-bottom: 0;
}
.nodeEditor > .section > .title {
text-color: rgb(180, 180, 180);
font-style: bold;
padding-left: 16;
padding-right: 16;
padding-bottom: 2;
}
.nodeEditor > .section > #slots {
flex-direction: column;
padding-left: 15;
padding-right: 15;
}
.nodeEditor > .section#surfaceOptions {
padding-left: 15;
padding-right: 15;
}
IMGUISlotEditorView {
flex-direction: column;
padding-bottom: 2;
}
ObjectControlView {
flex-direction: row;
}
ObjectControlView > ObjectField {
flex: 1;
}
PropertyControlView {
padding-left: 8;
padding-right: 8;
padding-top: 4;
padding-bottom: 4;
}
/* TEMP STUFF THAT SHOULD ACTUALLY STAY IN GRAPHVIEW */
FloatField {
min-height: 15;
margin-left: 4;
margin-top: 2;
margin-right: 4;
margin-bottom: 2;
padding-left: 3;
padding-top: 1;
padding-right: 3;
padding-bottom: 2;
slice-left: 3;
slice-top: 3;
slice-right: 3;
slice-bottom: 3;
selection-color: rgba(61,128,223,166);
cursor: text;
text-color: #B4B4B4;
background-image: resource("Builtin Skins/DarkSkin/Images/TextField.png");
cursor-color:#B4B4B4;
}
FloatField:focus {
background-image: resource("Builtin Skins/DarkSkin/Images/TextField focused.png");
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/GraphEditorView.uss.meta


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

89
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/GraphInspectorView.uss


GraphInspectorView {
background-color: rgb(56, 56, 56);
flex-direction: column;
justify-content: space-between;
position-type: absolute;
position-right: 0;
position-top: 0;
width: 400;
min-width: 300;
}
GraphInspectorView * {
font-size: 11;
}
GraphInspectorView > #top > #header {
background-color: rgb(64, 64, 64);
border-color: rgb(79, 79, 79);
border-bottom-width: 1;
flex-direction: row;
justify-content: space-between;
}
GraphInspectorView > #top > #header > #title {
text-color: rgb(180, 180, 180);
font-style: bold;
padding-left: 16;
padding-right: 16;
padding-top: 10;
padding-bottom: 10;
}
GraphInspectorView > #top > #content > #selectionCount {
text-color: rgb(180, 180, 180);
padding-left: 16;
padding-right: 16;
padding-top: 10;
padding-bottom: 10;
}
GraphInspectorView > #bottom {
margin-bottom: 20;
}
GraphInspectorView > #bottom > #preview {
max-height: 400;
background-color: rgb(79, 79, 79);
}
GraphInspectorView > #top > #properties {
border-color: rgb(41, 41, 41);
border-top-width: 1;
border-bottom-width: 1;
border-left-width: 1;
border-right-width: 1;
margin-top: 8;
margin-bottom: 8;
margin-left: 8;
margin-right: 8;
}
GraphInspectorView > #top > #properties > #header {
border-color: rgb(41, 41, 41);
border-bottom-width: 1;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
GraphInspectorView > #top > #properties > #header > #title {
text-color: rgb(180, 180, 180);
font-style: bold;
padding-top: 8;
padding-bottom: 8;
padding-left: 8;
padding-right: 8;
}
GraphInspectorView > #top > #properties > #header > #addButton {
height: 24;
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 8;
}
GraphInspectorView > #top > #properties > #items {
padding-bottom: 4;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/GraphInspectorView.uss.meta


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

49
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MasterPreviewView.uss


MasterPreviewView {
flex-direction: column;
position-type: absolute;
position-right: 0;
position-bottom: 0;
background-color: rgb(79, 79, 79);
justify-content: flex-start;
min-width: 200;
min-height: 200;
border-radius: 6;
border-top-width: 1;
border-bottom-width: 1;
border-left-width: 1;
border-right-width: 1;
border-color: rgb(25,25,25);
}
MasterPreviewView > #top {
background-color: rgb(64, 64, 64);
padding-top: 8;
padding-bottom: 8;
padding-left: 8;
padding-right: 8;
border-top-left-radius: 6;
border-top-right-radius: 6;
}
MasterPreviewView > #top > #title {
font-size: 12;
text-color: rgb(180, 180, 180);
padding-top: 1;
padding-bottom: 2;
padding-left: 2;
padding-right: 2;
}
MasterPreviewView > #middle {
flex-grow: 1;
border-width: 10;
flex-direction: row;
border-color: rgb(0,10,190);
}
MasterPreviewView > #middle > #preview {
flex-grow: 1;
border-width: 10;
border-color: rgb(200,10,190);
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MasterPreviewView.uss.meta


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

3
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MaterialGraphView.uss


MaterialGraphView {
background-color: #202020;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MaterialGraphView.uss.meta


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

146
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MaterialNodeView.uss


MaterialNodeView.graphElement.node.MaterialNode {
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
}
MaterialNodeView #collapsible-area {
width: 0;
height: 0;
}
MaterialNodeView #previewFiller.expanded {
width: 200;
padding-bottom: 200;
}
MaterialNodeView #previewFiller,
MaterialNodeView #controls {
background-color: rgba(63, 63, 63, 0.8);
}
MaterialNodeView #controls > #items {
padding-top: 4;
padding-bottom: 4;
}
MaterialNodeView > #previewContainer {
position-type: absolute;
position-bottom: 4;
position-left: 4;
border-radius: 6;
padding-top: 6;
}
MaterialNodeView > #previewContainer > #preview {
width: 200;
height: 200;
align-items:center;
}
MaterialNodeView > #previewContainer > #preview > #collapse {
background-color: #000;
border-color: #F0F0F0;
width: 0;
height: 0;
opacity: 0;
border-radius: 1;
border-top-width: 1;
border-bottom-width: 1;
border-left-width: 1;
border-right-width: 1;
margin-top: 4;
align-items:center;
justify-content:center;
}
MaterialNodeView:hover > #previewContainer > #preview > #collapse {
width: 20;
height: 20;
opacity: 0.6;
}
MaterialNodeView > #previewContainer > #preview > #collapse > #icon {
background-image : resource("GraphView/Nodes/PreviewCollapse.png");
width: 16;
height: 16;
}
MaterialNodeView > #previewContainer > #preview > #collapse:hover {
opacity: 1.0;
}
MaterialNodeView #previewFiller > #expand {
align-self: center;
width: 56;
height: 16;
flex-direction: row;
justify-content:center;
}
MaterialNodeView #previewFiller > #expand > #icon {
align-self: center;
background-image : resource("GraphView/Nodes/PreviewExpand.png");
width: 16;
height: 16;
}
MaterialNodeView #previewFiller.collapsed > #expand:hover {
background-color: #2B2B2B;
}
MaterialNodeView #previewFiller.expanded > #expand {
height: 0;
}
MaterialNodeView > #resize {
background-image : resource("GraphView/Nodes/NodeChevronLeft.png");
position-type: absolute;
position-right: 5;
position-bottom: 5;
width: 10;
height: 10;
cursor: resize-up-left;
}
MaterialNodeView > #portInputContainer {
position-type: absolute;
width: 212;
position-left: -200;
position-top: 46;
}
MaterialNodeView > #settings-container {
position-type : absolute;
width : 200;
background-color : rgb(245, 155, 225);
position-left : 200;
}
MaterialNodeView > #node-border > #title > #button-container{
flex-direction: row;
justify-content : space-between;
}
MaterialNodeView > #node-border > #title > #button-container > #settings-button{
align-self : center;
width : 16;
}
MaterialNodeView > #node-border > #title > #button-container > #settings-button:hover{
background-color: #2B2B2B;
}
MaterialNodeView > #node-border > #title > #button-container > #settings-button.clicked{
background-color: #2B2B2B;
}
MaterialNodeView > #node-border > #title > #button-container > #settings-button > #icon{
align-self : center;
background-image : resource("Icons/settingsbutton");
width : 16;
height : 16;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/MaterialNodeView.uss.meta


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

115
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/PortInputView.uss


PortInputView {
width: 212;
height: 22;
padding-top: 1;
flex-direction: row;
justify-content: flex-end;
}
PortInputView > #container {
background-color: rgba(63, 63, 63, 0.8);
flex-direction: row;
align-items: center;
padding-left: 8;
margin-right: 12;
border-left-width: 1;
border-top-width: 1;
border-right-width: 1;
border-bottom-width: 1;
border-color: rgba(25, 25, 25, 0.8);
border-radius: 2;
}
PortInputView > #container > #slot {
width: 8;
height: 8;
background-color: #2B2B2B;
border-color: #232323;
border-top-width: 1;
border-bottom-width: 1;
border-left-width: 1;
border-right-width: 1;
border-radius: 4;
margin-left: 6;
margin-right: 6;
align-items: center;
justify-content: center;
}
PortInputView > #edge {
position-type: absolute;
position-right: 0;
position-top: 10.5;
height: 2;
width: 20;
background-color: #ff0000;
}
PortInputView > #container > #slot > #dot {
width: 4;
height: 4;
background-color: #ff0000;
border-radius: 4;
}
PortInputView.typeMatrix4 > #container > #slot > #dot,
PortInputView.typeMatrix3 > #container > #slot > #dot,
PortInputView.typeMatrix2 > #container > #slot > #dot {
background-color: #8FC1DF;
}
PortInputView.typeMatrix4,
PortInputView.typeMatrix3,
PortInputView.typeMatrix2 {
edge-color: #8FC1DF;
}
PortInputView.typeTexture2D > #container > #slot > #dot,
PortInputView.typeCubemap > #container > #slot > #dot {
background-color: #FF8B8B;
}
PortInputView.typeTexture2D,
PortInputView.typeCubemap {
edge-color: #FF8B8B;
}
PortInputView.typeVector4 > #container > #slot > #dot {
background-color: #FBCBF4;
}
PortInputView.typeVector4 {
edge-color: #FBCBF4;
}
PortInputView.typeVector3 > #container > #slot > #dot {
background-color: #F6FF9A;
}
PortInputView.typeVector3 {
edge-color: #F6FF9A;
}
PortInputView.typeVector2 > #container > #slot > #dot {
background-color: #9AEF92;
}
PortInputView.typeVector2 {
edge-color: #9AEF92;
}
PortInputView.typeVector1 > #container > #slot > #dot {
background-color: #84E4E7;
}
PortInputView.typeVector1 {
edge-color: #84E4E7;
}
PortInputView.typeBoolean > #container > #slot > #dot {
background-color: #9481E6;
}
PortInputView.typeBoolean {
edge-color: #9481E6;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/PortInputView.uss.meta


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

195
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/ShaderPort.uss


/* THIS FILE IS FROM GRAPHVIEW BUT CONTAINS MODIFICATIONS */
ShaderPort {
height: 24;
align-items: center;
padding-left: 4;
padding-right: 4;
port-color: rgb(200, 200, 200);
disabled-port-color: rgb(70, 70, 70);
}
ShaderPort.input {
flex-direction: row;
}
ShaderPort.output {
flex-direction: row-reverse;
}
ShaderPort > #connector {
border-color: rgb(70, 70, 70);
background-color: #212121;
width: 8;
height: 8;
border-radius: 8;
align-items: center;
justify-content: center;
margin-left: 4;
margin-right: 4;
border-left-width:1;
border-top-width:1;
border-right-width:1;
border-bottom-width:1;
}
ShaderPort > #connector:hover {
border-color: #f0f0f0
}
ShaderPort > #connector > #cap
{
background-color: #212121;
width: 4;
height: 4;
border-radius: 4;
}
ShaderPort > #connector > #cap:hover
{
background-color: #f0f0f0;
}
ShaderPort > #connector.portHighlight {
border-color: #f0f0f0;
}
ShaderPort > #type {
text-color: #c1c1c1;
font-size:11;
height:16;
padding-left: 0;
padding-right: 0;
margin-left: 4;
margin-right: 4;
}
ShaderPort.input > #type {
text-alignment: middle-left;
}
ShaderPort.output > #type {
text-alignment:middle-right;
}
/*******************************/
/* ShaderPorts colors by types */
/*******************************/
ShaderPort.typeTexture {
port-color:#FF8B8B;
}
ShaderPort.typeTexture2D {
/* Same as typeTexture */
port-color:#FF8B8B;
}
ShaderPort.typeCubemap {
/* Same as typeTexture */
port-color:#FF8B8B;
}
ShaderPort.typeGraphScript {
/* Todo: there is no such type in Unity atm */
port-color:#E681BA;
}
ShaderPort.typeFloat4 {
port-color:#FBCBF4;
}
ShaderPort.typeVector4 {
/* Same as typeFloat4 */
port-color:#FBCBF4;
}
ShaderPort.typeQuaternion {
/* Same as typeFloat4 */
port-color:#FBCBF4;
}
ShaderPort.typeColor {
/* Same as typeFloat4 */
port-color:#FBCBF4;
}
ShaderPort.typeInt {
port-color:#9481E6;
}
ShaderPort.typeInt32 {
/* Same as typeInt */
port-color:#9481E6;
}
/* TEMP STUFF THAT SHOULD ACTUALLY STAY IN GRAPHVIEW */
ShaderPort.typeInt64 {
/* Same as typeInt */
/* todo we might want to differentiate that from int32 */
port-color:#9481E6;
}
ShaderPort.typeBoolean {
port-color:#9481E6;
}
ShaderPort.typeMatrix {
port-color:#8FC1DF;
}
ShaderPort.typeMatrix4x4 {
/* Same as typeMatrix */
port-color:#8FC1DF;
}
ShaderPort.typeGameObject {
port-color:#8FC1DF;
}
ShaderPort.typeFloat {
port-color:#84E4E7;
}
ShaderPort.typeFloat1 {
/* Same as typeFloat */
port-color:#84E4E7;
}
ShaderPort.typeSingle {
/* Same as typeFloat */
port-color:#84E4E7;
}
ShaderPort.typeDouble {
/* Same as typeFloat */
/* todo we might want to differentiate that from float */
port-color:#84E4E7;
}
ShaderPort.typeFloat2 {
port-color:#9AEF92;
}
ShaderPort.typeVector2 {
/* Same as typeFloat2 */
port-color:#9AEF92;
}
ShaderPort.typeComponent {
port-color:#C9F774;
}
ShaderPort.typeFloat3 {
port-color:#F6FF9A;
}
ShaderPort.typeVector3 {
/* Same as typeFloat3 */
port-color:#F6FF9A;
}
ShaderPort.typeString {
port-color:#FCD76E;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/ShaderPort.uss.meta


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

31
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/ShaderPropertyView.uss


ShaderPropertyView {
flex-direction: row;
justify-content: space-between;
align-items: center;
padding-top: 8;
padding-bottom: 4;
padding-left: 8;
padding-right: 8;
}
ShaderPropertyView > #displayName {
flex: 1;
margin-right: 8;
}
ShaderPropertyView > #value {
flex: 2;
margin-right: 8;
}
ShaderPropertyView > #remove {
font-size: 9;
padding-top: 0;
padding-bottom: 0;
padding-left: 1;
padding-right: 1;
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/ShaderPropertyView.uss.meta


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

8
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/BooleanSlotControlView.uss


BooleanSlotControlView {
flex-direction: row;
align-items: center;
}
BooleanSlotControlView > Toggle {
width: 20;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/BooleanSlotControlView.uss.meta


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

61
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ChannelMixerControlView.uss


ChannelMixerControlView {
padding-left: 8;
padding-right: 8;
padding-top: 4;
padding-bottom: 4;
}
ChannelMixerControlView > Label {
margin-left: 0;
margin-right: 0;
cursor: slide-arrow;
}
ChannelMixerControlView > #buttonPanel {
flex-direction: row;
flex-grow: 1;
margin-bottom: 6;
}
ChannelMixerControlView > #buttonPanel > Button {
flex-grow: 1;
margin-left: 0;
margin-right: 0;
align-items: center;
}
ChannelMixerControlView > #buttonPanel > Button > Label {
flex-grow: 1;
margin-left: 0;
margin-right: 0;
margin-top: 0;
margin-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
}
ChannelMixerControlView > #sliderPanel {
flex-direction: row;
flex-grow: 1;
}
ChannelMixerControlView > #sliderPanel > Label {
margin-left: 0;
margin-right: 0;
min-width: 20;
}
ChannelMixerControlView > #sliderPanel > Slider {
flex-grow: 1;
margin-left: 0;
margin-right: 0;
}
ChannelMixerControlView > #sliderPanel > FloatField {
margin-left: 4;
margin-right: 2;
min-width: 30;
max-width: 30;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ChannelMixerControlView.uss.meta


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

26
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ColorControlView.uss


ColorControlView > ColorField {
flex-direction: row;
}
ColorControlView > #enumPanel {
flex-direction: row;
}
ColorControlView > #enumPanel > EnumField {
flex: 1;
margin-left: 0;
margin-right: 8;
margin-top: 4;
margin-bottom: 4;
}
ColorControlView > #enumPanel > Label {
padding-left: 0;
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
margin-left: 8;
margin-right: 8;
margin-top: 4;
margin-bottom: 4;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ColorControlView.uss.meta


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

10
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ColorRGBASlotControlView.uss


ColorRGBASlotControlView {
flex-direction: row;
align-items: center;
}
ColorRGBASlotControlView > ColorField {
width: 41;
margin-left: 0;
margin-right: 0;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ColorRGBASlotControlView.uss.meta


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

10
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ColorRGBSlotControlView.uss


ColorRGBSlotControlView {
flex-direction: row;
align-items: center;
}
ColorRGBSlotControlView > ColorField {
width: 41;
margin-left: 0;
margin-right: 0;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ColorRGBSlotControlView.uss.meta


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

12
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/CubemapSlotControlView.uss


CubemapSlotControlView {
flex-direction: row;
align-items: center;
}
CubemapSlotControlView > ObjectField {
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
width: 100;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/CubemapSlotControlView.uss.meta


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

54
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/DielectricSpecularControlView.uss


DielectricSpecularControlView {
padding-left: 8;
padding-right: 8;
padding-top: 4;
padding-bottom: 4;
}
DielectricSpecularControlView > #enumPanel {
flex-direction: row;
flex-grow: 1;
padding-top: 0;
padding-bottom: 0;
}
DielectricSpecularControlView > #enumPanel > Label {
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
width: 60;
}
DielectricSpecularControlView > #enumPanel > EnumField {
flex-grow: 1;
margin-left: 0;
margin-right: 0;
}
DielectricSpecularControlView > #sliderPanel {
flex-direction: row;
flex-grow: 1;
padding-top: 0;
padding-bottom: 0;
}
DielectricSpecularControlView > #sliderPanel > Label {
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
width: 60;
}
DielectricSpecularControlView > #sliderPanel > Slider {
flex-grow: 1;
margin-left: 0;
margin-right: 0;
}
DielectricSpecularControlView > #sliderPanel > FloatField {
width: 30;
margin-left: 4;
margin-right: 0;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/DielectricSpecularControlView.uss.meta


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

22
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/EnumControlView.uss


EnumControlView {
flex-direction: row;
}
EnumControlView > EnumField {
flex: 1;
margin-left: 0;
margin-right: 8;
margin-top: 4;
margin-bottom: 4;
}
EnumControlView > Label {
padding-left: 0;
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
margin-left: 8;
margin-right: 8;
margin-top: 4;
margin-bottom: 4;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/EnumControlView.uss.meta


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

26
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/EnumConversionControlView.uss


EnumConversionControlView {
flex-direction: row;
padding-left: 8;
padding-right: 8;
padding-top: 4;
padding-bottom: 4;
}
EnumConversionControlView > EnumField {
flex: 1;
margin-left: 0;
margin-right: 0;
margin-top: 0;
margin-bottom: 0;
}
EnumConversionControlView > Label {
margin-left: 4;
margin-right: 4;
margin-top: 0;
margin-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/EnumConversionControlView.uss.meta


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

14
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/IntegerControlView.uss


IntegerControlView {
flex-direction: row;
padding-left: 8;
padding-right: 8;
padding-top: 4;
padding-bottom: 4;
}
IntegerControlView > IntegerField {
margin-left: 0;
margin-right: 0;
min-width: 30;
flex-grow: 1;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/IntegerControlView.uss.meta


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

20
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/MultiFloatControlView.uss


MultiFloatControlView {
flex-direction: row;
padding-left: 8;
padding-right: 8;
padding-top: 4;
padding-bottom: 4;
}
MultiFloatControlView > #dummy > Label {
margin-left: 0;
margin-right: 0;
cursor: slide-arrow;
}
MultiFloatControlView > FloatField {
margin-left: 0;
margin-right: 0;
min-width: 30;
flex-grow: 1;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/MultiFloatControlView.uss.meta


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

16
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/MultiFloatSlotControlView.uss


MultiFloatSlotControlView {
flex-direction: row;
align-items: center;
}
MultiFloatSlotControlView > #dummy > Label {
margin-left: 0;
margin-right: 0;
cursor: slide-arrow;
}
MultiFloatSlotControlView > FloatField {
width: 30;
margin-left: 0;
margin-right: 0;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/MultiFloatSlotControlView.uss.meta


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

52
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/SliderControlView.uss


SliderControlView {
padding-left: 8;
padding-right: 8;
padding-top: 4;
padding-bottom: 4;
}
SliderControlView > #SliderPanel {
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;
padding-bottom: 4;
flex-direction: row;
flex-grow: 1;
}
SliderControlView > #SliderPanel > Slider {
margin-left: 0;
margin-right: 0;
flex-direction: row;
flex-grow: 1;
min-width: 164;
}
SliderControlView > #SliderPanel > FloatField {
margin-left: 4;
margin-right: 0;
flex-direction: row;
flex-grow: 1;
width: 30;
}
SliderControlView > #FieldsPanel {
flex-direction: row;
flex-grow: 1;
margin-left: 0;
margin-right: 0;
}
SliderControlView > #FieldsPanel > Label {
margin-left: 0;
margin-right: 8;
}
SliderControlView > #FieldsPanel > FloatField {
margin-left: 0;
margin-right: 0;
flex-direction: row;
flex-grow: 1;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/SliderControlView.uss.meta


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

12
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/TextureSlotControlView.uss


TextureSlotControlView {
flex-direction: row;
align-items: center;
}
TextureSlotControlView > ObjectField {
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
width: 100;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/TextureSlotControlView.uss.meta


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

24
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ToggleControlView.uss


ToggleControlView > #togglePanel {
flex-direction: row;
flex-grow: 1;
}
ToggleControlView > #togglePanel > Label {
flex-grow: 1;
padding-left: 0;
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
margin-left: 8;
margin-right: 8;
margin-top: 4;
margin-bottom: 4;
}
ToggleControlView > #togglePanel > Toggle {
margin-left: 8;
margin-right: 8;
margin-top: 4;
margin-bottom: 4;
align-self: center;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ToggleControlView.uss.meta


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

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/UVSlotControlView.uss


UVSlotControlView > EnumField {
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
width: 40;
}

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/UVSlotControlView.uss.meta


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

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ScreenPositionSlotControlView.uss


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

7
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ScreenPositionSlotControlView.uss.meta


fileFormatVersion: 2
guid: 61a89c57c8aee6c43ac9433a7a5dbf9e
ScriptedImporter:
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
正在加载...
取消
保存