Class CinemachineFollow
This is a CinemachineComponent in the Body section of the component pipeline. Its job is to position the camera in a fixed relationship to the vcam's Tracking Target object, with offsets and damping.
This component will only change the camera's position in space. It will not re-orient or otherwise aim the camera. To to that, you need to instruct the camera in the Aim section of its pipeline.
Inheritance
Inherited Members
Namespace: Unity.Cinemachine
Assembly: solution.dll
Syntax
[AddComponentMenu("Cinemachine/Procedural/Position Control/Cinemachine Follow")]
[DisallowMultipleComponent]
[CameraPipeline(CinemachineCore.Stage.Body)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.0/manual/CinemachineFollow.html")]
public class CinemachineFollow : CinemachineComponentBase
Fields
Name | Description |
---|---|
FollowOffset | The distance which the camera will attempt to maintain from the tracking target |
TrackerSettings | Settings to control damping for target tracking. |
Properties
Name | Description |
---|---|
IsValid | True if component is enabled and has a valid Follow target |
Stage | Get the Cinemachine Pipeline stage that this component implements. Always returns the Body stage |
Methods
Name | Description |
---|---|
ForceCameraPosition(Vector3, Quaternion) | Force the virtual camera to assume a given position and orientation |
GetMaxDampTime() | Report maximum damping time needed for this component. |
MutateCameraState(ref CameraState, float) | Positions the virtual camera according to the transposer rules. |
OnTargetObjectWarped(Transform, Vector3) | This is called to notify the user that a target got warped, so that we can update its internal state to make the camera also warp seamlessly. |