Unity3D圣典3.3版本-中文版
文集大纲加载中……
本文档使用 MrDoc 发布
-
+
首页
AnimationUtility 动画工具
# AnimationUtility 动画工具 Editor utility functions for modifying animation clips 编辑器工具函数,用于修改动画剪辑 Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script. 注意:这是一个编辑器类,如果想使用它你需要把它放到工程目录下的 Assets/Editor 文件夹下。编辑器类在 UnityEditor 命名空间下。所以当使用 C#脚本时,你需要在脚本前面加上 "using UnityEditor"引用。 ### Class Functions**类函数** * [GetAnimationClips](AnimationUtility.GetAnimationClips.html) Returns the array of AnimationClips that are referenced in the Animation component 返回动画组件中被引用的动画剪辑数组 * [SetAnimationClips](AnimationUtility.SetAnimationClips.html) Sets the array of AnimationClips to be referenced in the Animation component 设置动画组件中被引用的动画剪辑数组 * [GetAnimatableObjects](AnimationUtility.GetAnimatableObjects.html) Returns a list of animatable objects attached to the game object (includes materials) 返回一个列表,包含着附加到游戏物体的动画物体(包含材质) * [GetAnimatablePropertiesFor...](AnimationUtility.GetAnimatablePropertiesForObject.html "GetAnimatablePropertiesForObject") Returns a list of animatable properties for a specific animated object that is attached to gameObject 返回一个列表,包含着附加到游戏物体上的特定动画的动画属性 * [GetAnimatableProperties](AnimationUtility.GetAnimatableProperties.html) Retrieves all animatable properties of all components / materials attached to the game object 检索所有附加在游戏物体的组件/材质的动画属性 * [GetFloatValue](AnimationUtility.GetFloatValue.html) Retrieves the current float value by sampling a curve value on a specific game object 用在一个特定游戏物体上进行曲线值采样的方式检索当前浮点数值。 * [GetAllCurves](AnimationUtility.GetAllCurves.html) Retrieves all curves from a specific animation clip. 从一个特定动画剪辑中检索所有曲线 * [GetEditorCurve](AnimationUtility.GetEditorCurve.html) Unity automatic combines position curves, scale curves, rotation curves internally. Unity 自动混合曲线坐标,缩放,旋转。 * [SetEditorCurve](AnimationUtility.SetEditorCurve.html) Unity automatic combines position curves, scale curves, rotation curves internally. Unity 自动混合曲线坐标,缩放,旋转。 * [GetAnimationEvents](AnimationUtility.GetAnimationEvents.html) Retrieves all animation events associated with the animation clip 检索动画剪辑相关的所有动画事件。 * [SetAnimationEvents](AnimationUtility.SetAnimationEvents.html) Replaces all animation events in the animation clip 替换动画剪辑中所有的动画事件 * [CalculateTransformPath](AnimationUtility.CalculateTransformPath.html) Calculates path from root transform to target transform. 计算从初始 transform 到目标 transform 的路径 * [StartAnimationMode](AnimationUtility.StartAnimationMode.html) Starts animation mode, as used by the animation editor. 开始动画模式,如使用动画编辑器。 * [StopAnimationMode](AnimationUtility.StopAnimationMode.html) Stops animation mode, as used by the animation editor. 停止动画模式,如使用动画编辑器。 * [InAnimationMode](AnimationUtility.InAnimationMode.html) Returns true if the editor is currently in animation mode. 如果当前编辑器在动画模式则返回 true
da
2022年5月13日 22:24
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码