You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
543 B

using UnityEngine;
using UnityEngine.Rendering.HighDefinition;
namespace UnityEditor.Rendering.HighDefinition
{
partial class HDCameraEditor
{
void OnSceneGUI()
{
if (HDRenderPipeline.currentPipeline == null)
return;
if (!(target is Camera c) || c == null)
return;
if (!CameraEditorUtils.IsViewPortRectValidToRender(c.rect))
return;
UnityEditor.CameraEditorUtils.HandleFrustum(c, c.GetInstanceID());
}
}
}