Method BeforePipeline
BeforePipeline(CinemachineVirtualCameraBase, ref CameraState, float, float)
Called from extension's PrePipelineMutateCameraState(). Perform any necessary actions to modify relevant camera settings. Original camera settings should be restored in AfterPipeline(CinemachineVirtualCameraBase, ref CameraState, float, float).
Declaration
public override void BeforePipeline(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. |