namespace UnityEngine.Rendering.HighDefinition { /// /// Utility class for HDRP specific components. /// public static class ComponentUtility { /// Check if the provided camera is compatible with High-Definition Render Pipeline /// The Camera to check /// True if it is compatible, false otherwise public static bool IsHDCamera(Camera camera) => camera.GetComponent() != null; /// Check if the provided light is compatible with High-Definition Render Pipeline /// The Light to check /// True if it is compatible, false otherwise public static bool IsHDLight(Light light) => light.GetComponent() != null; /// Check if the provided reflection probe is compatible with High-Definition Render Pipeline /// The ReflectionProbe to check /// True if it is compatible, false otherwise public static bool IsHDReflectionProbe(ReflectionProbe reflectionProbe) => reflectionProbe.GetComponent() != null; } }