Class CinemachineBlend
Describes a blend between 2 Cinemachine Virtual Cameras, and holds the current state of the blend.
상속된 멤버
네임스페이스: Cinemachine
어셈블리: solution.dll
구문
public class CinemachineBlend
생성자
이름 | 설명 |
---|---|
CinemachineBlend(ICinemachineCamera, ICinemachineCamera, AnimationCurve, float, float) | Construct a blend |
프로퍼티
이름 | 설명 |
---|---|
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 |
메서드
이름 | 설명 |
---|---|
UpdateCameraState(Vector3, float) | Make sure the source cameras get updated. |
Uses(ICinemachineCamera) | Does the blend use a specific Cinemachine Virtual Camera? |