Files
adriadri6972 d3d9c5f833 upload project
2025-07-31 15:21:08 +02:00

22 lines
700 B
C#

using UnityEngine.Rendering;
namespace UnityEngine.XR.ARSubsystems
{
/// <summary>
/// A utilities class for containing universally useful Rendering operations and information
/// for rendering AR.
/// </summary>
public static class ARRenderingUtils
{
static bool? s_UseLegacyRenderPipeline;
/// <summary>
/// Whether to use the legacy rendering pipeline.
/// </summary>
/// <value>
/// <c>true</c> if the legacy render pipeline is in use. Otherwise, <c>false</c>.
/// </value>
public static bool useLegacyRenderPipeline => s_UseLegacyRenderPipeline ??= GraphicsSettings.currentRenderPipeline == null;
}
}