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 |
---|---|
Blend |
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) |
Cam |
First camera in the blend |
Cam |
Second camera in the blend |
Duration | Duration in seconds of the blend. |
Time |
The current time relative to the start of the blend |
Properties
Name | Description |
---|---|
Blend |
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. |
Custom |
If non-null, the custom blender will be used to blend camera state. |
Description | Text description of the blend, for debugging |
Is |
True if the time relative to the start of the blend is greater than or equal to the blend duration |
Is |
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 |
---|---|
Clear |
Clears all fields except CamB. This effectively cuts to the end of the blend |
Copy |
Copy contents of a blend |
Update |
Make sure the source cameras get updated. |
Uses(ICinemachine |
Does the blend use a specific CinemachineCamera? |