Class CinemachineFollowZoom
An add-on module for Cinemachine Virtual 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
Inherited Members
Namespace: Cinemachine
Assembly: solution.dll
Syntax
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
[AddComponentMenu("")]
[ExecuteInEditMode]
public class CinemachineFollowZoom : CinemachineExtension
Fields
Name | Description |
---|---|
m_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. |
m_MaxFOV | Will not generate an FOV larget than this. |
m_MinFOV | Will not generate an FOV smaller than this. |
m_Width | The shot width to maintain, in world units, at target distance. FOV will be adusted 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 |