Class CinemachineFollowZoom
An add-on module for Cm Camera that adjusts the FOV of the lens to keep the target object at a constant size on the screen, regardless of camera and target position.
Inheritance
CinemachineFollowZoom
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Cinemachine
Assembly: solution.dll
Syntax
[AddComponentMenu("Cinemachine/Procedural/Extensions/Cinemachine Follow Zoom")]
[ExecuteAlways]
[DisallowMultipleComponent]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.0/manual/CinemachineFollowZoom.html")]
public class CinemachineFollowZoom : CinemachineExtension
Fields
Name | Description |
---|---|
Damping | Increase this value to soften the aggressiveness of the follow-zoom. Small numbers are more responsive, larger numbers give a more heavy slowly responding camera. |
FovRange | Range for the FOV that this behaviour will generate. |
Width | The shot width to maintain, in world units, at target distance. FOV will be adjusted as far as possible to maintain this width at the target distance from the camera. |
Methods
Name | Description |
---|---|
GetMaxDampTime() | Report maximum damping time needed for this component. |
PostPipelineStageCallback(CinemachineVirtualCameraBase, Stage, ref CameraState, float) | Callback to preform the zoom adjustment |