Version: 5.4 beta (switch to 5.3)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ModelImporterClipAnimation

class in UnityEditor

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

Sumbission failed

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

Close

Cancel

Description

Animation clips to split animation into.

Variables

additiveReferencePoseFrameThe additive reference pose frame.
curvesAdditionnal curves that will be that will be added during the import process.
cycleOffsetOffset to the cycle of a looping animation, if a different time in it is desired to be the start.
eventsAnimationEvents that will be added during the import process.
firstFrameFirst frame of the clip.
hasAdditiveReferencePoseEnable to defines an additive reference pose.
heightFromFeetKeeps the feet aligned with the root transform position.
heightOffsetOffset to the vertical root position.
keepOriginalOrientationKeeps the vertical position as it is authored in the source file.
keepOriginalPositionXZKeeps the vertical position as it is authored in the source file.
keepOriginalPositionYKeeps the vertical position as it is authored in the source file.
lastFrameLast frame of the clip.
lockRootHeightYEnable to make vertical root motion be baked into the movement of the bones. Disable to make vertical root motion be stored as root motion.
lockRootPositionXZEnable to make horizontal root motion be baked into the movement of the bones. Disable to make horizontal root motion be stored as root motion.
lockRootRotationEnable to make root rotation be baked into the movement of the bones. Disable to make root rotation be stored as root motion.
loopIs the clip a looping animation?
loopPoseEnable to make the motion loop seamlessly.
loopTimeEnable to make the clip loop.
maskNeedsUpdatingReturns true when the source AvatarMask has changed. This only happens when ModelImporterClipAnimation.maskType is set to ClipAnimationMaskType.CopyFromOther To force a reload of the mask, simply set ModelImporterClipAnimation.maskSource to the desired AvatarMask.
maskSourceThe AvatarMask used to mask transforms during the import process.
maskTypeDefine mask type.
mirrorMirror left and right in this clip.
nameClip name.
rotationOffsetOffset in degrees to the root rotation.
takeNameTake name.
wrapModeThe wrap mode of the animation.