Method LookupBlend
LookupBlend(ICinemachineCamera, ICinemachineCamera, CinemachineBlendDefinition, CinemachineBlenderSettings, Object)
Find a blend curve for blending from one ICinemachineCamera to another. If there is a specific blend defined for these cameras it will be used, otherwise a default blend will be created, which could be a cut.
CinemachineCore.GetBlendOverride will be called at the end, so that the client may override the choice of blend.
Declaration
public static CinemachineBlendDefinition LookupBlend(ICinemachineCamera outgoing, ICinemachineCamera incoming, CinemachineBlendDefinition defaultBlend, CinemachineBlenderSettings customBlends, Object owner)
Parameters
Type | Name | Description |
---|---|---|
ICinemachineCamera | outgoing | The camera we're blending from. |
ICinemachineCamera | incoming | The camera we're blending to. |
CinemachineBlendDefinition | defaultBlend | Blend to return if no custom blend found. |
CinemachineBlenderSettings | customBlends | The custom blends asset to search, or null. |
Object | owner | The object that is requesting the blend, for GetBlendOverride callback context. |
Returns
Type | Description |
---|---|
CinemachineBlendDefinition | The blend to use for this camera transition. |