|
|
|
|
|
|
using UnityEngine.Rendering; |
|
|
|
using UnityEngine.Rendering; |
|
|
|
|
|
|
|
namespace UnityEngine.Experimental.Rendering |
|
|
|
{ |
|
|
|
|
|
|
public void Setup() |
|
|
|
{ |
|
|
|
m_OriginalAsset = GraphicsSettings.renderPipelineAsset; |
|
|
|
GraphicsSettings.renderPipelineAsset = renderPipeline; |
|
|
|
if (m_OriginalAsset != renderPipeline) GraphicsSettings.renderPipelineAsset = renderPipeline; |
|
|
|
GraphicsSettings.renderPipelineAsset = m_OriginalAsset; |
|
|
|
if ( GraphicsSettings.renderPipelineAsset != m_OriginalAsset ) GraphicsSettings.renderPipelineAsset = m_OriginalAsset; |
|
|
|
} |
|
|
|
} |
|
|
|
} |