用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:animationclip:animationclip

AnimationClip 动画剪辑

class in UnityEngine / Inherits from: Motion

Description 描述

Stores keyframe based animations.

储存基于关键帧的动画。

AnimationClip is used by Animation to play back animations.

AnimationClip是用于Animation来播放动画。

Variables 变量

eventsAnimation Events for this animation clip.
用于该剪辑的动画事件。
frameRateFrame rate at which keyframes are sampled. (Read Only)
被取样关键帧的帧速率。(只读)
humanMotionReturns true if the animation contains curve that drives a humanoid rig.
如果该动画包含的曲线是人类骨骼,返回true。
legacySet to true if the AnimationClip will be used with the Legacy Animation component ( instead of the Animator ).
如果动画剪辑被使用于旧版Animation组件,返回true。
lengthAnimation length in seconds. (Read Only)
动画长度,单位秒。(只读)
localBoundsAABB of this Animation Clip in local space of Animation component that it is attached too.
动画组件在本地坐标空间这个动画剪辑的AABB也被附加。
wrapModeSets the default wrap mode used in the animation state.
在动画状态设置使用的默认循环模式。

Constructors 构造器

AnimationClipCreates a new animation clip.
创建一个新的动画剪辑。

Public Functions 共有函数

AddEventAdds an animation event to the clip.
给剪辑添加动画事件。
ClearCurvesClears all curves from the clip.
从该剪辑清除所有曲线。
EnsureQuaternionContinuityIn order to insure better interpolation of quaternions, call this function after you are finished setting animation curves.
为了保证更好的四元数插值,你设置完成动画曲线后调用这个函数。
SampleAnimationSamples an animation at a given time for any animated properties.
在给定的时间采样动画,为任意动画的属性。
SetCurveAssigns the curve to animate a specific property.
指定动画曲线来动画特定的属性。
script/unityengine/classes/animationclip/animationclip.txt · 最后更改: 2016/08/02 05:30 (外部编辑)