Version: 1.10
LanguageEnglish
  • C#

AnimationDeadBlendingPlayable

struct in UnityEngine.Animations

/

Implemented in:UnityEngine.AnimationModule


Implements interfaces:IPlayable

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A playable that can be used to process dead blending animation transitions.

Dead Blending is an inertial-extrapolation-based transition technique. It captures the velocity of the source animation at the moment of transition, extrapolates each channel using an implicit exponential decay with per-axis heuristic half-life, and cross-fades to the target pose. This produces smooth, physically plausible transitions without requiring a dedicated source clip to blend from.

Unlike Inertialization which cancels the offset analytically, Dead Blending uses an exponential decay model: each channel is extrapolated as x(t) = x₀ + (v₀/c)(1 - e^(-ct)) where c is the per-axis decay constant derived from the heuristic half-life. The cross-fade alpha is controlled by a BlendCurveMode.

Static Properties

NullReturns a null AnimationDeadBlendingPlayable.

Public Methods

GetDurationScaleReturns the multiplier applied to the blend duration.
GetHalfLifeBaseReturns the base half-life for the heuristic per-axis decay constant calculation.
GetHalfLifeMaxReturns the maximum half-life clamp value.
GetHalfLifeMinReturns the minimum half-life clamp value.
GetMaxDoFVelocityReturns the maximum DoF velocity for humanoid DoF and HandPose channels.
GetMaxFloatCurveVelocityReturns the maximum velocity for Float curve channels.
GetMaxRotationAngularVelocityReturns the maximum rotation angular velocity for Rotation and Goal rotation channels.
GetMaxScaleVelocityReturns the maximum scale velocity for Scale channels.
GetMaxTranslationVelocityReturns the maximum translation velocity for Position, Scale, TDoF, and Goal position channels.
GetPoseBlendCurveReturns the custom blend curve used when PoseBlendCurveMode is set to Custom.
GetPoseBlendCurveModeReturns the blend curve mode for the cross-fade alpha computation.
GetRootMotionBlendCurveReturns the custom blend curve used for root motion when RootMotionBlendCurveMode is set to Custom.
GetRootMotionBlendCurveModeReturns the blend curve mode for the root motion cross-fade alpha computation.
GetUseEerpForScaleReturns whether exponential interpolation (Eerp) is used for Scale channels instead of linear interpolation (Lerp).
SetAvatarWeightMaskSets the per-body-part blend weights from an AvatarWeightMask.
SetDurationScaleSets the multiplier applied to the blend duration.
SetHalfLifeBaseSets the base half-life for the heuristic per-axis decay constant calculation.
SetHalfLifeMaxSets the maximum half-life clamp value.
SetHalfLifeMinSets the minimum half-life clamp value.
SetMaxDoFVelocitySets the maximum DoF velocity for humanoid DoF and HandPose channels.
SetMaxFloatCurveVelocitySets the maximum velocity for Float curve channels.
SetMaxRotationAngularVelocitySets the maximum rotation angular velocity for Rotation and Goal rotation channels.
SetMaxScaleVelocitySets the maximum scale velocity for Scale channels.
SetMaxTranslationVelocitySets the maximum translation velocity for Position, Scale, TDoF, and Goal position channels.
SetPoseBlendCurveSets the custom blend curve used when PoseBlendCurveMode is set to Custom.
SetPoseBlendCurveModeSets the blend curve mode for the cross-fade alpha computation.
SetRootMotionBlendCurveSets the custom blend curve for root motion when RootMotionBlendCurveMode is set to Custom.
SetRootMotionBlendCurveModeSets the blend curve mode for the root motion cross-fade alpha computation.
SetUseEerpForScaleSets whether exponential interpolation (Eerp) is used for Scale channels.

Static Methods

CreateCreates an AnimationDeadBlendingPlayable in the PlayableGraph.