浏览代码

remove c#4 features.

/main
Tim Cooper 7 年前
当前提交
19ff14c7
共有 5 个文件被更改,包括 8 次插入5 次删除
  1. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/ShaderPropertyView.cs
  2. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Graphs/AbstractMaterialGraph.cs
  3. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Graphs/AbstractShaderProperty.cs
  4. 5
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/SubGraph/AbstractSubGraphNode.cs
  5. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/SubGraph/SubGraphOutputNode.cs

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


void DisplayNameField()
{
EditorGUI.BeginChangeCheck();
property.description = EditorGUILayout.DelayedTextField(property.description);
property.displayName = EditorGUILayout.DelayedTextField(property.displayName);
if (EditorGUI.EndChangeCheck())
NotifyNodes();
}

2
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Graphs/AbstractMaterialGraph.cs


public string GetShader(AbstractMaterialNode node, GenerationMode mode, string name, out List<PropertyCollector.TextureInfo> configuredTextures, out PreviewMode previewMode)
{
if (node == null)
throw new ArgumentNullException(nameof(node));
throw new ArgumentNullException("node");
var vertexShader = new ShaderGenerator();
var surfaceDescriptionFunction = new ShaderGenerator();

2
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Graphs/AbstractShaderProperty.cs


}
}
public string overrideReferenceName { get; set; } = string.Empty;
public string overrideReferenceName { get; set; }
public abstract PropertyType propertyType { get; }

5
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/SubGraph/AbstractSubGraphNode.cs


}
}
public virtual INode outputNode { get; } = null;
public virtual INode outputNode
{
get { return null; }
}
public virtual void OnEnable()
{

2
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/SubGraph/SubGraphOutputNode.cs


RemoveSlot(index);
}
public override bool allowedInRemapGraph { get; } = false;
public override bool allowedInRemapGraph { get { return false; } }
}
}
正在加载...
取消
保存