Class CinemachineFreeLookModifier.TiltModifier
Builtin FreeLook modifier for camera tilt. Applies a vertical rotation to the camera at the end of the camera pipeline.
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
public class CinemachineFreeLookModifier.TiltModifier : CinemachineFreeLookModifier.Modifier
Fields
Tilt
Values for the top and bottom rigs
Declaration
public CinemachineFreeLookModifier.TopBottomRigs<float> Tilt
Field Value
Type | Description |
---|---|
CinemachineFreeLookModifier.TopBottomRigs<float> |
Methods
AfterPipeline(CinemachineVirtualCameraBase, ref CameraState, float, float)
Called from extension's PostPipelineStageCallback(Finalize). Perform any necessary actions to state, and restore any camera parameters changed in BeforePipeline.
Declaration
public override void AfterPipeline(CinemachineVirtualCameraBase vcam, ref CameraState state, float deltaTime, float modifierValue)
Parameters
Type | Name | Description |
---|---|---|
CinemachineVirtualCameraBase | vcam | vcam owner |
CameraState | state | current vcam state. May be modified in this function |
float | deltaTime | current applicable deltaTime |
float | modifierValue | The normalized value of the modifier variable. |
Overrides
Reset(CinemachineVirtualCameraBase)
Called when the modifier is created. Initialize fields with appropriate values.
Declaration
public override void Reset(CinemachineVirtualCameraBase vcam)
Parameters
Type | Name | Description |
---|---|---|
CinemachineVirtualCameraBase | vcam | the virtual camera owner |
Overrides
Validate(CinemachineVirtualCameraBase)
Called from OnValidate to validate this component
Declaration
public override void Validate(CinemachineVirtualCameraBase vcam)
Parameters
Type | Name | Description |
---|---|---|
CinemachineVirtualCameraBase | vcam | the virtual camera owner |