初始化

This commit is contained in:
2026-06-05 22:12:05 +08:00
commit d7146f87ac
1999 changed files with 221608 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
using UnityEngine;
using UnityEngine.Rendering;
namespace EPOOutline
{
public static class PipelineFetcher
{
#if UNITY_2019_1_OR_NEWER
public static RenderPipelineAsset CurrentAsset
{
get
{
var pipeline = QualitySettings.renderPipeline;
if (pipeline == null)
{
#if UNITY_6000_0_OR_NEWER
pipeline = GraphicsSettings.defaultRenderPipeline;
#else
pipeline = GraphicsSettings.renderPipelineAsset;
#endif
}
return pipeline;
}
}
#endif
}
}