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

26 行
595 B

using UnityEngine.Rendering;
namespace UnityEngine.Experimental.Rendering
{
public class SetupSceneForRenderPipelineTest : MonoBehaviour
{
private RenderPipelineAsset m_OriginalAsset;
public RenderPipelineAsset renderPipeline;
public Camera cameraToUse;
public bool hdr = false;
public int width = 1280;
public int height = 720;
public void Setup()
{
m_OriginalAsset = GraphicsSettings.renderPipelineAsset;
GraphicsSettings.renderPipelineAsset = renderPipeline;
}
public void TearDown()
{
GraphicsSettings.renderPipelineAsset = m_OriginalAsset;
}
}
}