Class CinemachineBlend
Describes a blend between 2 CinemachineCameras, and holds the current state of the blend.
Inherited Members
Namespace: Unity.Cinemachine
Assembly: solution.dll
Syntax
public class CinemachineBlend
Fields
Name | Description |
---|---|
BlendCurve | The curve that describes the way the blend transitions over time from the first camera to the second. X-axis is normalized time (0...1) over which the blend takes place and Y axis is blend weight (0..1) |
CamA | First camera in the blend |
CamB | Second camera in the blend |
Duration | Duration in seconds of the blend. |
TimeInBlend | The current time relative to the start of the blend |
Properties
Name | Description |
---|---|
BlendWeight | The current weight of the blend. This is an evaluation of the BlendCurve at the current time relative to the start of the blend. 0 means camA, 1 means camB. |
CustomBlender | If non-null, the custom blender will be used to blend camera state. |
Description | Text description of the blend, for debugging |
IsComplete | True if the time relative to the start of the blend is greater than or equal to the blend duration |
IsValid | Validity test for the blend. True if either camera is defined. |
State | Compute the blended CameraState for the current time in the blend. |
Methods
Name | Description |
---|---|
ClearBlend() | Clears all fields except CamB. This effectively cuts to the end of the blend |
CopyFrom(CinemachineBlend) | Copy contents of a blend |
UpdateCameraState(Vector3, float) | Make sure the source cameras get updated. |
Uses(ICinemachineCamera) | Does the blend use a specific CinemachineCamera? |