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
Inherited Members
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. |
Fov |
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 |
---|---|
Get |
Report maximum damping time needed for this component. |
Post |
Callback to preform the zoom adjustment |