Class CinemachineRecomposer
An add-on module for Cm Camera that adds a final tweak to the camera composition. It is intended for use in a Timeline context, where you want to hand-adjust the output of procedural or recorded camera aiming.
Inheritance
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[AddComponentMenu("Cinemachine/Procedural/Extensions/Cinemachine Recomposer")]
[ExecuteAlways]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@3.1/manual/CinemachineRecomposer.html")]
public class CinemachineRecomposer : CinemachineExtension
Fields
ApplyAfter
When to apply the adjustment
Declaration
[Tooltip("When to apply the adjustment")]
[FormerlySerializedAs("m_ApplyAfter")]
public CinemachineCore.Stage ApplyAfter
Field Value
Type | Description |
---|---|
CinemachineCore.Stage |
Dutch
Roll the camera by this much
Declaration
[Tooltip("Roll the camera by this much")]
[FormerlySerializedAs("m_Dutch")]
public float Dutch
Field Value
Type | Description |
---|---|
float |
FollowAttachment
Lowering this value relaxes the camera's attention to the Follow target (normal = 1)
Declaration
[Range(0, 1)]
[Tooltip("Lowering this value relaxes the camera's attention to the Follow target (normal = 1)")]
[FormerlySerializedAs("m_FollowAttachment")]
public float FollowAttachment
Field Value
Type | Description |
---|---|
float |
LookAtAttachment
Lowering this value relaxes the camera's attention to the LookAt target (normal = 1)
Declaration
[Range(0, 1)]
[Tooltip("Lowering this value relaxes the camera's attention to the LookAt target (normal = 1)")]
[FormerlySerializedAs("m_LookAtAttachment")]
public float LookAtAttachment
Field Value
Type | Description |
---|---|
float |
Pan
Pan the camera by this much
Declaration
[Tooltip("Pan the camera by this much")]
[FormerlySerializedAs("m_Pan")]
public float Pan
Field Value
Type | Description |
---|---|
float |
Tilt
Tilt the camera by this much
Declaration
[Tooltip("Tilt the camera by this much")]
[FormerlySerializedAs("m_Tilt")]
public float Tilt
Field Value
Type | Description |
---|---|
float |
ZoomScale
Scale the zoom by this amount (normal = 1)
Declaration
[Tooltip("Scale the zoom by this amount (normal = 1)")]
[FormerlySerializedAs("m_ZoomScale")]
public float ZoomScale
Field Value
Type | Description |
---|---|
float |
Methods
PostPipelineStageCallback(CinemachineVirtualCameraBase, Stage, ref CameraState, float)
Callback to tweak the settings
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)
Callback to set the target attachment
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 |