CinemachineBlend Class

Cinemachine

CinemachineBlend Class

Describes a blend between 2 Cinemachine Virtual Cameras, and holds the current state of the blend.
Inheritance Hierarchy
SystemObject  CinemachineCinemachineBlend

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
  NameDescription
Public methodCinemachineBlend
Construct a blend
Top
Properties
  NameDescription
Public propertyBlendCurve
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)
Public propertyBlendWeight
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.
Public propertyCamA
First camera in the blend
Public propertyCamB
Second camera in the blend
Public propertyDescription
Text description of the blend, for debugging
Public propertyDuration
Duration in seconds of the blend. This is given read from the BlendCurve.
Public propertyIsComplete
True if the time relative to the start of the blend is greater than or equal to the blend duration
Public propertyIsValid
Validity test for the blend. True if both cameras are defined.
Public propertyState
Compute the blended CameraState for the current time in the blend.
Public propertyTimeInBlend
The current time relative to the start of the blend
Top
Methods
  NameDescription
Public methodUpdateCameraState
Make sure the source cameras get updated.
Public methodUses
Does the blend use a specific Cinemachine Virtual Camera?
Top
See Also