AnimationClip 动画剪辑
Inherits from Object
Stores keyframe based animations.
储存基于动画的关键帧。
AnimationClip is used by Animation to play back animations.
AnimationClip 是由Animation使用来播放动画。
Variables变量
- lengthAnimation length in seconds (Read Only)
动画的长度,以秒计算(只读) - frameRateFrame rate at which keyframes are sampled (Read Only)
被采样的关键帧帧速率(只读) - wrapModeSets the default wrap mode used in the animation state.
在动画状态设置使用的默认循环模式。 - localBoundsAABB of this Animation Clip in local space of Animation component that it is attached too.
动画组件在本地坐标空间这个动画剪辑的AABB也被附加。
Constructors构造器
- AnimationClipCreates a new animation clip
创建一个新的动画剪辑。
Functions函数
- SetCurveAssigns the curve to animate a specific property.
给动画指定曲线一个特殊的属性。 - ClearCurvesClears all curves from the clip.
从剪辑清除所有曲线。 - AddEventAdds an animation event to the clip.
给剪辑添加动画事件。
Inherited members继承成员Inherited Variables继承变量
- nameThe name of the object. //物体的名字
- hideFlagsShould the object be hidden, saved with the scene or modifiable by the user?
物体是否被隐藏、保存在场景中或被用户修改?
Inherited Functions继承函数
- GetInstanceIDReturns the instance id of the object.
返回物体的实例ID - ToStringReturns the name of the game object.
返回游戏物体的名称。
Inherited Class Functions继承类函数
- DestroyRemoves a gameobject, component or asset.
删除一个游戏物体、组件或资源 - DestroyImmediateDestroys the object obj immediately. It is strongly recommended to use Destroy instead.
立即销毁物体obj,强烈建议使用Destroy代替。 - DontDestroyOnLoadMakes the object target not be destroyed automatically when loading a new scene.
加载新场景的时候使目标物体不被自动销毁。 - FindObjectOfTypeReturns the first active loaded object of Type type.
返回Type类型第一个激活的加载的物体。 - FindObjectsOfTypeReturns a list of all active loaded objects of Type type.
返回Type类型的所有激活的加载的物体列表 - InstantiateClones the object original and returns the clone.
克隆原始物体,并返回克隆的物体