Singularity/Library/PackageCache/com.unity.render-pipelines..../Editor/RendererFeatures/NewRendererFeatureDropdownI...

18 lines
713 B
C#
Raw Permalink Normal View History

2024-05-06 14:45:45 -04:00
using UnityEditor.Rendering.Universal.Internal;
using UnityEngine.Rendering;
namespace UnityEditor.Rendering.Universal
{
internal static class NewRendererFeatureDropdownItem
{
static readonly string defaultNewClassName = "CustomRenderPassFeature.cs";
[MenuItem("Assets/Create/Rendering/URP Renderer Feature", priority = CoreUtils.Sections.section3 + CoreUtils.Priorities.assetsCreateRenderingMenuPriority)]
internal static void CreateNewRendererFeature()
{
string templatePath = AssetDatabase.GUIDToAssetPath(ResourceGuid.rendererTemplate);
ProjectWindowUtil.CreateScriptAssetFromTemplateFile(templatePath, defaultNewClassName);
}
}
}