Version: 1.8
LanguageEnglish
  • C#

AnimationInterval

class 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

Represents a specific time interval within an animation clip that can have motion warping applied to it.

AnimationInterval defines a start and end frame within an animation where specific motion warping behaviors can be applied. This allows for fine-grained control over how animations are modified during playback.

Properties

endTimeThe normalized ending time of the animation interval. The value should be between 0 and 1, where 0 represents the start of the animation and 1 represents the end. The end time must be greater than the start time.
generalWarpModifierSettingsThe general warp modifier settings when motionWarpModifierType is set to GeneralWarp.
motionWarpModifierTypeThe type of motion warp modifier to apply to this interval.
motionWarpTargetSettingsThe target settings for motion warping applied to this interval.
nameThe name of the animation interval.
scaleWarpModifierSettingsThe scale warp modifier settings when motionWarpModifierType is set to ScaleWarp.
startTimeThe normalized starting time of the animation interval. The value should be between 0 and 1, where 0 represents the start of the animation and 1 represents the end.

Constructors

AnimationIntervalInitializes a new instance of the AnimationInterval class with default values.