docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct CinemachineBlendDefinition

    Definition of a Camera blend. This struct holds the information necessary to generate a suitable AnimationCurve for a Cinemachine Blend.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Cinemachine
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct CinemachineBlendDefinition

    Constructors

    Name Description
    CinemachineBlendDefinition(Styles, float)

    Constructor

    Fields

    Name Description
    CustomCurve

    A user-defined AnimationCurve, used only if style is Custom. Curve MUST be normalized, i.e. time range [0...1], value range [0...1].

    Style

    The shape of the blend curve.

    Time

    The duration (in seconds) of the blend, if not a cut.
    If style is a cut, then this value is ignored.

    Properties

    Name Description
    BlendCurve

    A normalized AnimationCurve specifying the interpolation curve for this camera blend. Y-axis values must be in range [0,1] (internally clamped within Blender) and time must be in range of [0, 1].

    BlendTime

    Get the duration of the blend, in seconds. Will return 0 if blend style is a cut.

    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)