浏览代码

Needed to add .uss file to make things display correctly

/main
Martin Thorzen 7 年前
当前提交
82aecff4
共有 3 个文件被更改,包括 29 次插入0 次删除
  1. 1
      com.unity.shadergraph/Editor/Drawing/Blackboard/BlackboardFieldPropertyView.cs
  2. 18
      com.unity.shadergraph/Editor/Resources/Styles/ShaderGraphBlackboard.uss
  3. 10
      com.unity.shadergraph/Editor/Resources/Styles/ShaderGraphBlackboard.uss.meta

1
com.unity.shadergraph/Editor/Drawing/Blackboard/BlackboardFieldPropertyView.cs


public BlackboardFieldPropertyView(AbstractMaterialGraph graph, IShaderProperty property)
{
AddStyleSheetPath("Styles/ShaderGraphBlackboard");
m_Graph = graph;
if (property is Vector1ShaderProperty)
{

18
com.unity.shadergraph/Editor/Resources/Styles/ShaderGraphBlackboard.uss


.sgblackboardFieldPropertyView * {
font-size: 11;
}
.sgblackboardFieldPropertyView > .rowView {
flex-direction: row;
padding-left: 10;
padding-right: 2;
padding-top: 2;
padding-bottom: 2;
}
.sgblackboardFieldPropertyView > .rowView > .rowViewLabel {
min-width: 50;
}
.sgblackboardFieldPropertyView > .rowView > .rowViewControl {
flex: 1;
}

10
com.unity.shadergraph/Editor/Resources/Styles/ShaderGraphBlackboard.uss.meta


fileFormatVersion: 2
guid: 381f1cbb2f6577e408bed4c5f6208020
ScriptedImporter:
fileIDToRecycleName:
11400000: stylesheet
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
正在加载...
取消
保存