void OnSceneGUI()
        {
            var c = (Camera)target;

            if (!CameraEditorUtils.IsViewPortRectValidToRender(c.rect))
            {
                return;
            }

            SceneViewOverlay_Window(_.GetContent("Camera Preview"), OnOverlayGUI, -100, target);

            CameraEditorUtils.HandleFrustrum(c);
        }
        void OnSceneGUI()
        {
            var c = (Camera)target;

            if (!CameraEditorUtils.IsViewPortRectValidToRender(c.rect))
            {
                return;
            }

            SceneViewOverlay_Window(EditorGUIUtility.TrTextContent("Camera Preview"), OnOverlayGUI, -100, target);

            UnityEditor.CameraEditorUtils.HandleFrustum(c, c.GetInstanceID());
        }
        void OnSceneGUI()
        {
            if (HDRenderPipeline.currentPipeline == null)
            {
                return;
            }

            if (!(target is Camera c) || c == null)
            {
                return;
            }

            if (!CameraEditorUtils.IsViewPortRectValidToRender(c.rect))
            {
                return;
            }

            SceneViewOverlay_Window(EditorGUIUtility.TrTextContent("Camera Preview"), OnOverlayGUI, -100, target);

            UnityEditor.CameraEditorUtils.HandleFrustum(c, c.GetInstanceID());
        }