浏览代码

Add default constructor for MaterialSlotDefaultInput to allow deserialization

/main
julienf-unity 8 年前
当前提交
95bdff73
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
      MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/MaterialSlot.cs

5
MaterialGraphProject/Assets/UnityShaderEditor/Runtime/Nodes/MaterialSlot.cs


public class MaterialSlotDefaultInput : MaterialSlot, IGenerateDefaultInput
{
public MaterialSlotDefaultInput() : base()
{
}
public MaterialSlotDefaultInput(int slotId, string displayName, string shaderOutputName, SlotType slotType, SlotValueType valueType, INode _defaultNode, int _defaultSlotID)
: base(slotId, displayName, shaderOutputName, slotType, valueType, Vector4.zero)
{

正在加载...
取消
保存