UnityAPI手册-2019.4官网版
文集大纲加载中……
本文档使用 MrDoc 发布
-
+
首页
AnimationClip
# AnimationClip class in UnityEngine / 继承自:[Motion](Motion.html) ## 描述 保存基于关键帧的动画。 [Animation](Animation.html) 使用 AnimationClip 来播放动画。 ## 变量 | [empty](AnimationClip-empty.html) | 如果该动画剪辑没有曲线,也没有事件,则返回 true。 | | -------------------------------------------------------------------- | -------------------------------------------------------------------------------- | | [events](AnimationClip-events.html) | 该动画剪辑的动画事件。 | | [frameRate](AnimationClip-frameRate.html) | 对关键帧进行采样的帧率。(只读) | | [hasGenericRootTransform](AnimationClip-hasGenericRootTransform.html) | 如果 Animation 在根变换组件上具有动画,则返回 true。 | | [hasMotionCurves](AnimationClip-hasMotionCurves.html) | 如果 AnimationClip 具有根运动曲线,则返回 true。 | | [hasMotionFloatCurves](AnimationClip-hasMotionFloatCurves.html) | 如果 AnimationClip 的根运动具有编辑器曲线,则返回 true。 | | [hasRootCurves](AnimationClip-hasRootCurves.html) | 如果 AnimationClip 具有根曲线,则返回 true。 | | [humanMotion](AnimationClip-humanMotion.html) | 如果该动画包含驱动人形骨架的曲线,则返回 true。 | | [legacy](AnimationClip-legacy.html) | 如果将把 AnimationClip 与旧版动画组件(而不是动画器)结合使用,则设置为 true。 | | [length](AnimationClip-length.html) | 动画长度,单位为秒。(只读) | | [localBounds](AnimationClip-localBounds.html) | 其附加到的动画组件本地空间中此动画剪辑的 AABB。 | | [wrapMode](AnimationClip-wrapMode.html) | 设置在该动画状态中使用的默认包裹模式。 | ## 构造函数 | [AnimationClip](AnimationClip-ctor.html) | 创建新动画剪辑。 | | --------------------------------------- | ------------------ | ## 公共函数 | [AddEvent](AnimationClip.AddEvent.html) | 将一个动画事件添加到该剪辑中。 | | -------------------------------------------------------------------------- | ------------------------------------------------ | | [ClearCurves](AnimationClip.ClearCurves.html) | 清除该剪辑中的所有曲线。 | | [EnsureQuaternionContinuity](AnimationClip.EnsureQuaternionContinuity.html) | 重新调整四元数关键点,以便确保最短的插值路径。 | | [SampleAnimation](AnimationClip.SampleAnimation.html) | 在给定时间针对任何动画属性对动画进行采样。 | | [SetCurve](AnimationClip.SetCurve.html) | 分配该曲线,以便为指定属性生成动画。 | ## 继承的成员 ## 变量 | [hideFlags](Object-hideFlags.html) | 该对象应该隐藏、随场景一起保存还是由用户修改? | | --------------------------------- | ------------------------------------------------ | | [name](Object-name.html) | 对象的名称。 | ## 公共函数 | [GetInstanceID](Object.GetInstanceID.html) | 返回对象的实例 ID。 | | ----------------------------------------- | --------------------- | | [ToString](Object.ToString.html) | 返回对象的名称。 | ## 静态函数 | [Destroy](Object.Destroy.html) | 移除 GameObject、组件或资源。 | | ------------------------------------------------- | ------------------------------------------------ | | [DestroyImmediate](Object.DestroyImmediate.html) | 立即销毁对象 /obj/。强烈建议您改用 Destroy。 | | [DontDestroyOnLoad](Object.DontDestroyOnLoad.html) | 在加载新的 Scene 时,请勿销毁 Object。 | | [FindObjectOfType](Object.FindObjectOfType.html) | 返回第一个类型为 type 的已加载的激活对象。 | | [FindObjectsOfType](Object.FindObjectsOfType.html) | 返回所有类型为 type 的已加载的激活对象的列表。 | | [Instantiate](Object.Instantiate.html) | 克隆 original 对象并返回克隆对象。 | ## 运算符 | [bool](Object-operator_Object.html) | 该对象是否存在? | | ------------------------------------- | ------------------------------------------------ | | [operator !=](Object-operator_ne.html) | 比较两个对象是否引用不同的对象。 | | [operator ==](Object-operator_eq.html) | 比较两个对象引用,判断它们是否引用同一个对象。 |
da
2022年5月23日 22:39
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码