Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ModelImporterClipAnimation

Animation clips to split animation into.
Read time 2 minutesLast updated 4 days ago

Definition

  • Type: Class
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public sealed class ModelImporterClipAnimation

Properties

Property

Description

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.
keepOriginalOrientationIf true, uses the root rotation from the source animation without modification. If false, Unity derives and applies root rotation based on the clip's import settings.
keepOriginalPositionXZIf true, uses the root horizontal position from the source animation without modification. If false, Unity derives and applies root horizontal motion based on the clip's import settings.
keepOriginalPositionYIf true, uses the root vertical position from the source animation without modification. If false, Unity derives and applies root vertical motion based on the clip's import settings.
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 is set to 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.

Methods

Method

Description

ConfigureClipFromMaskCopy the mask settings from an AvatarMask to the clip configuration.
ConfigureMaskFromClipCopy the current masking settings from the clip to an AvatarMask.