您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
14 行
618 B
14 行
618 B
namespace UnityEditor.Rendering.Universal
|
|
{
|
|
internal static class NewRendererFeatureDropdownItem
|
|
{
|
|
static readonly string defaultNewClassName = "CustomRenderPassFeature.cs";
|
|
|
|
[MenuItem("Assets/Create/Rendering/Universal Render Pipeline/Renderer Feature", priority = EditorUtils.lwrpAssetCreateMenuPriorityGroup2)]
|
|
internal static void CreateNewRendererFeature()
|
|
{
|
|
string templatePath = AssetDatabase.GUIDToAssetPath(ResourceGuid.rendererTemplate);
|
|
ProjectWindowUtil.CreateScriptAssetFromTemplateFile(templatePath, defaultNewClassName);
|
|
}
|
|
}
|
|
}
|