docs.unity.cn
    Show / Hide Table of Contents

    Interface CinemachineBlend.IBlender

    Interface for implementing custom CameraState blending algorithm

    Namespace: Unity.Cinemachine
    Syntax
    public interface IBlender

    Methods

    GetIntermediateState(ICinemachineCamera, ICinemachineCamera, Single)

    Interpolate a camera state between the two cameras being blended.

    Declaration
    CameraState GetIntermediateState(ICinemachineCamera CamA, ICinemachineCamera CamB, float t)
    Parameters
    Type Name Description
    ICinemachineCamera CamA

    The first camera

    ICinemachineCamera CamB

    The second camera

    Single t

    Range 0...1 where 0 is CamA state and 1 is CamB state

    Returns
    Type Description
    CameraState

    The interpolated state.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Saturday, May 6, 2023