您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

29 行
750 B

using System.Collections.Generic;
using System.IO;
using System.Linq;
using RMGUI.GraphView;
using UnityEditor.Graphing.Drawing;
using UnityEngine;
using UnityEngine.MaterialGraph;
namespace UnityEditor.MaterialGraph.Drawing
{
public class MaterialGraphEditWindow : AbstractGraphEditWindow<IMaterialGraphAsset>
{
[MenuItem("Window/Material Editor")]
public static void OpenMenu()
{
GetWindow<MaterialGraphEditWindow>();
}
public override AbstractGraphDataSource CreateDataSource()
{
return CreateInstance<MaterialGraphDataSource>();
}
public override GraphView CreateGraphView()
{
return new MaterialGraphView();
}
}
}