Class CinemachineFreeLookModifier
This is an add-on for CinemachineCameras containing the OrbitalFollow component. It modifies the camera distance as a function of vertical angle.
Inheritance
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[AddComponentMenu("Cinemachine/Procedural/Extensions/Cinemachine FreeLook Modifier")]
[ExecuteAlways]
[DisallowMultipleComponent]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.1/manual/CinemachineFreeLookModifier.html")]
public class CinemachineFreeLookModifier : CinemachineExtension
Fields
Easing
The amount of easing to apply towards the center value. Zero easing blends linearly through the center value, while an easing of 1 smooths the result as it passes over the center value.
Declaration
[Tooltip("The amount of easing to apply towards the center value. Zero easing blends linearly through the center value, while an easing of 1 smooths the result as it passes over the center value.")]
[Range(0, 1)]
public float Easing
Field Value
| Type | Description |
|---|---|
| float |
Modifiers
Collection of modifiers that will be applied to the camera every frame. These will modify settings as a function of the FreeLook's Vertical axis value.
Declaration
[Tooltip("These will modify settings as a function of the FreeLook's Vertical axis value")]
[SerializeReference]
public List<CinemachineFreeLookModifier.Modifier> Modifiers
Field Value
| Type | Description |
|---|---|
| List<CinemachineFreeLookModifier.Modifier> |
Methods
OnEnable()
Called when component is enabled
Declaration
protected override void OnEnable()
Overrides
PostPipelineStageCallback(CinemachineVirtualCameraBase, Stage, ref CameraState, float)
Callback to perform the requested rig modifications.
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 |
Overrides
PrePipelineMutateCameraStateCallback(CinemachineVirtualCameraBase, ref CameraState, float)
Override this to do such things as offset the ReferenceLookAt. Base class implementation does nothing.
Declaration
public override void PrePipelineMutateCameraStateCallback(CinemachineVirtualCameraBase vcam, ref CameraState curState, float deltaTime)
Parameters
| Type | Name | Description |
|---|---|---|
| CinemachineVirtualCameraBase | vcam | The virtual camera being processed |
| CameraState | curState | Input state that must be mutated |
| float | deltaTime | The current applicable deltaTime |