Version: 1.10
LanguageEnglish
  • C#

TransitionParams

struct in UnityEngine

/

Implemented in:UnityEngine.AnimationModule

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

Parameters that define an animation transition between two states.

Used by the AnimationGraph or StateMachinePlayable to control blending, timing, and curve modes when transitioning from one animation state to another.

Properties

fixedTimeDetermines how the transition duration is measured. If true, duration is in seconds; if false, it is normalized (0-1) relative to the source state length.
poseBlendCurveAn optional custom blend curve for the pose, used when the pose blend curve mode is set to Custom.
poseBlendCurveModeThe blend curve mode used for interpolating the character's body pose.
rootMotionBlendCurveAn optional custom blend curve for the root motion, used when the root motion blend curve mode is set to Custom.
rootMotionBlendCurveModeThe blend curve mode used for interpolating the root motion of the character.
timeOffsetA time offset into the destination state at which the transition will end.
transitionBlendModeThe blend mode that defines how the source and destination poses are combined during the transition.
transitionDurationThe duration of the transition, either in seconds (when fixedTime is true) or as a normalized fraction (when false).
transitionTimeThe current normalized time of the transition (0 to 1).