浏览代码

Split up ScreenPositionSlotControl into its own .USS file

/main
Martin Thorzen 7 年前
当前提交
6ad87d77
共有 3 个文件被更改,包括 15 次插入0 次删除
  1. 1
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/Slots/ScreenPositionSlotControlView.cs
  2. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ScreenPositionSlotControlView.uss
  3. 7
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Resources/Styles/Controls/ScreenPositionSlotControlView.uss.meta

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);

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