Class CinemachineShotQualityEvaluator
Evaluates shot quality in the Finalize stage based on LookAt target occlusion and distance.
Inheritance
Implements
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[AddComponentMenu("Cinemachine/Procedural/Extensions/Cinemachine Shot Quality Evaluator")]
[ExecuteAlways]
[DisallowMultipleComponent]
[RequiredTarget(RequiredTargetAttribute.RequiredTargets.Tracking)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.1/manual/CinemachineShotQualityEvaluator.html")]
public class CinemachineShotQualityEvaluator : CinemachineExtension, IShotQualityEvaluator
Fields
CameraRadius
Radius of the spherecast that will be done to check for occlusions.
Declaration
[Tooltip("Radius of the spherecast that will be done to check for occlusions.")]
public float CameraRadius
Field Value
Type | Description |
---|---|
float |
DistanceEvaluation
If enabled, will evaluate shot quality based on target distance and occlusion
Declaration
[FoldoutWithEnabledButton("Enabled")]
public CinemachineShotQualityEvaluator.DistanceEvaluationSettings DistanceEvaluation
Field Value
Type | Description |
---|---|
CinemachineShotQualityEvaluator.DistanceEvaluationSettings |
IgnoreTag
Obstacles with this tag will be ignored. It is a good idea to set this field to the target's tag
Declaration
[Tooltip("Obstacles with this tag will be ignored. It is a good idea to set this field to the target's tag")]
public string IgnoreTag
Field Value
Type | Description |
---|---|
string |
MinimumDistanceFromTarget
Obstacles closer to the target than this will be ignored
Declaration
[Tooltip("Obstacles closer to the target than this will be ignored")]
public float MinimumDistanceFromTarget
Field Value
Type | Description |
---|---|
float |
OcclusionLayers
Objects on these layers will be detected.
Declaration
[Tooltip("Objects on these layers will be detected")]
public LayerMask OcclusionLayers
Field Value
Type | Description |
---|---|
LayerMask |
Methods
PostPipelineStageCallback(CinemachineVirtualCameraBase, Stage, ref CameraState, float)
This callback will be called after the virtual camera has implemented each stage in the pipeline. This method may modify the referenced state. If deltaTime less than 0, reset all state info and perform no damping.
Declaration
protected override void PostPipelineStageCallback(CinemachineVirtualCameraBase vcam, CinemachineCore.Stage stage, ref CameraState state, float deltaTime)
Parameters
Type | Name | Description |
---|---|---|
CinemachineVirtualCameraBase | vcam | The virtual camera being processed |
CinemachineCore.Stage | stage | The current pipeline stage |
CameraState | state | The current virtual camera state |
float | deltaTime | The current applicable deltaTime |