Cinemachine
CinemachineBlend Class |
Describes a blend between 2 Cinemachine Virtual Cameras, and holds the
current state of the blend.
Inheritance Hierarchy
Namespace: Cinemachine
Assembly: Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public class CinemachineBlend
Cinemachine.CinemachineBlend = function(); Type.createClass( 'Cinemachine.CinemachineBlend');
The CinemachineBlend type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CinemachineBlend | 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 time in seconds 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.
This is given read from the BlendCurve. | |
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 both cameras are 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 | Make sure the source cameras get updated. | |
Uses | Does the blend use a specific Cinemachine Virtual Camera? |
See Also