CreateShaderGraph.cs 718 B

12345678910111213141516171819202122232425
  1. using UnityEngine;
  2. namespace UnityEditor.ShaderGraph
  3. {
  4. static class CreateShaderGraph
  5. {
  6. [MenuItem("Assets/Create/Shader/Unlit Graph", false, 208)]
  7. public static void CreateUnlitMasterMaterialGraph()
  8. {
  9. GraphUtil.CreateNewGraph(new UnlitMasterNode());
  10. }
  11. [MenuItem("Assets/Create/Shader/PBR Graph", false, 208)]
  12. public static void CreatePBRMasterMaterialGraph()
  13. {
  14. GraphUtil.CreateNewGraph(new PBRMasterNode());
  15. }
  16. [MenuItem("Assets/Create/Shader/VFX Shader Graph", false, 208)]
  17. public static void CreateVfxShaderGraph()
  18. {
  19. GraphUtil.CreateNewGraph(new VfxMasterNode());
  20. }
  21. }
  22. }