diff --git a/com.unity.cinemachine/Tests/Editor/IsHDRP.cs b/com.unity.cinemachine/Tests/Editor/IsHDRP.cs index 1b5082f9b..f51a7f689 100644 --- a/com.unity.cinemachine/Tests/Editor/IsHDRP.cs +++ b/com.unity.cinemachine/Tests/Editor/IsHDRP.cs @@ -10,7 +10,11 @@ public class IsHDRPTests [Test] public void IsHDRP() { +#if UNITY_2023_3_OR_NEWER + UnityEngine.Assertions.Assert.IsNotNull(GraphicsSettings.defaultRenderPipeline); +#else UnityEngine.Assertions.Assert.IsNotNull(GraphicsSettings.renderPipelineAsset); +#endif } } } diff --git a/com.unity.cinemachine/Tests/Runtime/IsHDRP.cs b/com.unity.cinemachine/Tests/Runtime/IsHDRP.cs index 3980d48fd..bcbbee7d6 100644 --- a/com.unity.cinemachine/Tests/Runtime/IsHDRP.cs +++ b/com.unity.cinemachine/Tests/Runtime/IsHDRP.cs @@ -10,7 +10,11 @@ public class IsHDRPTests [Test] public void IsHDRP() { +#if UNITY_2023_3_OR_NEWER + UnityEngine.Assertions.Assert.IsNotNull(GraphicsSettings.defaultRenderPipeline); +#else UnityEngine.Assertions.Assert.IsNotNull(GraphicsSettings.renderPipelineAsset); +#endif } } }