浏览代码

Remove un-used presenters

/main
Peter Bay Bastian 7 年前
当前提交
76269a78
共有 4 个文件被更改,包括 0 次插入93 次删除
  1. 50
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Presenters/GraphAnchorPresenter.cs
  2. 12
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Presenters/GraphAnchorPresenter.cs.meta
  3. 19
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Presenters/GraphEdgePresenter.cs
  4. 12
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Presenters/GraphEdgePresenter.cs.meta

50
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Presenters/GraphAnchorPresenter.cs


using System;
using UnityEditor.Experimental.UIElements.GraphView;
using UnityEngine;
using UnityEngine.Graphing;
using UnityEngine.MaterialGraph;
namespace UnityEditor.MaterialGraph.Drawing
{
internal static class MyNodeAdapters
{
internal static bool Adapt(this NodeAdapter value, PortSource<Vector4> a, PortSource<Vector4> b)
{
return true;
}
}
// TODO JOCE Use GraphView's Input and Output node anchors instead.
[Serializable]
public class GraphAnchorPresenter : NodeAnchorPresenter
{
protected GraphAnchorPresenter()
{}
public ISlot slot { get; private set; }
public void Initialize(ISlot slot)
{
this.slot = slot;
name = slot.displayName;
anchorType = typeof(Vector4);
m_Direction = slot.isInputSlot ? Direction.Input : Direction.Output;
}
Direction m_Direction;
public override Direction direction
{
get { return m_Direction; }
}
ShaderStage m_ShaderStage;
public ShaderStage shaderStage
{
get { return m_ShaderStage; }
set { m_ShaderStage = value; }
}
}
}

12
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Presenters/GraphAnchorPresenter.cs.meta


fileFormatVersion: 2
guid: f04b4288b3bfba3408bdc318de3a50b1
timeCreated: 1476707367
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

19
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Presenters/GraphEdgePresenter.cs


using System;
using UnityEditor.Experimental.UIElements.GraphView;
namespace UnityEditor.MaterialGraph.Drawing
{
[Serializable]
public class GraphEdgePresenter : EdgePresenter
{
protected GraphEdgePresenter()
{}
public UnityEngine.Graphing.IEdge edge { get; private set; }
public void Initialize(UnityEngine.Graphing.IEdge inEdge)
{
edge = inEdge;
}
}
}

12
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Presenters/GraphEdgePresenter.cs.meta


fileFormatVersion: 2
guid: 4b9ded26d428ffa49b4c9569437e5b49
timeCreated: 1476708486
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存