您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
25 行
718 B
25 行
718 B
using UnityEngine;
|
|
|
|
namespace UnityEditor.ShaderGraph
|
|
{
|
|
static class CreateShaderGraph
|
|
{
|
|
[MenuItem("Assets/Create/Shader/Unlit Graph", false, 208)]
|
|
public static void CreateUnlitMasterMaterialGraph()
|
|
{
|
|
GraphUtil.CreateNewGraph(new UnlitMasterNode());
|
|
}
|
|
|
|
[MenuItem("Assets/Create/Shader/PBR Graph", false, 208)]
|
|
public static void CreatePBRMasterMaterialGraph()
|
|
{
|
|
GraphUtil.CreateNewGraph(new PBRMasterNode());
|
|
}
|
|
|
|
[MenuItem("Assets/Create/Shader/VFX Shader Graph", false, 208)]
|
|
public static void CreateVfxShaderGraph()
|
|
{
|
|
GraphUtil.CreateNewGraph(new VfxMasterNode());
|
|
}
|
|
}
|
|
}
|