Class CinemachineBlend
Describes a blend between 2 Cinemachine Virtual Cameras, and holds the current state of the blend.
Inherited Members
Namespace: Cinemachine
Assembly: solution.dll
Syntax
public class CinemachineBlend
Constructors
| Name | Description |
|---|---|
| CinemachineBlend(ICinemachineCamera, ICinemachineCamera, AnimationCurve, float, float) | Construct a blend |
Properties
| 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) |
| 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. |
| CamA | First camera in the blend |
| CamB | Second camera in the blend |
| Description | Text description of the blend, for debugging |
| Duration | Duration in seconds of the blend. |
| 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. |
| TimeInBlend | The current time relative to the start of the blend |
Methods
| Name | Description |
|---|---|
| UpdateCameraState(Vector3, float) | Make sure the source cameras get updated. |
| Uses(ICinemachineCamera) | Does the blend use a specific Cinemachine Virtual Camera? |