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

22 行
587 B

using UnityEditor;
using UnityEngine;
using UnityEngine.Experimental.Rendering;
using UnityEngine.Rendering;
[CustomEditor(typeof(SetupSceneForRenderPipelineTest))]
public class SetupSceneForRenderPipelineTestEditor : Editor
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
var sceneSetup = target as SetupSceneForRenderPipelineTest;
if (sceneSetup == null)
return;
if (GUILayout.Button("Set renderpipe"))
{
GraphicsSettings.renderPipelineAsset = sceneSetup.renderPipelines[0];
}
}
}