using System;
namespace UnityEngine.Rendering.Universal
{
///
/// Volume debug settings.
///
public class UniversalRenderPipelineVolumeDebugSettings : VolumeDebugSettings
{
///
/// Specifies the render pipeline for this volume settings
///
public override Type targetRenderPipeline => typeof(UniversalRenderPipeline);
/// Selected camera volume stack.
public override VolumeStack selectedCameraVolumeStack
{
get
{
Camera cam = selectedCamera;
if (cam == null)
return null;
var additionalCameraData = selectedCamera.GetComponent();
if (additionalCameraData == null)
return null;
var stack = additionalCameraData.volumeStack;
if (stack != null)
return stack;
return VolumeManager.instance.stack;
}
}
/// Selected camera volume layer mask.
public override LayerMask selectedCameraLayerMask => selectedCamera != null ? selectedCamera.GetComponent().volumeLayerMask : (LayerMask)0;
/// Selected camera volume position.
public override Vector3 selectedCameraPosition => selectedCamera != null ? selectedCamera.transform.position : Vector3.zero;
}
}