docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CinemachineBlend

    Describes a blend between 2 CinemachineCameras, and holds the current state of the blend.

    Inheritance
    object
    CinemachineBlend
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Cinemachine
    Assembly: solution.dll
    Syntax
    public class CinemachineBlend

    Fields

    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)

    CamA

    First camera in the blend

    CamB

    Second camera in the blend

    Duration

    Duration in seconds of the blend.

    TimeInBlend

    The current time relative to the start of the blend

    Properties

    Name Description
    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.

    CustomBlender

    If non-null, the custom blender will be used to blend camera state.
    If null, then CameraState.Lerp will be used.

    Description

    Text description of the blend, for debugging

    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.

    Methods

    Name Description
    ClearBlend()

    Clears all fields except CamB. This effectively cuts to the end of the blend

    CopyFrom(CinemachineBlend)

    Copy contents of a blend

    UpdateCameraState(Vector3, float)

    Make sure the source cameras get updated.

    Uses(ICinemachineCamera)

    Does the blend use a specific CinemachineCamera?

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)