animation 的speed
时间: 2023-10-19 21:25:43 浏览: 165
day21_JQuery高级教案1
可以修改animation的speed属性来控制动画的播放速度。speed的取值可以有多种情况,比如animation.speed = 1表示正常播放,animation.speed = -1表示倒着播放,而animation.speed = 2表示快进播放。在Unity中,可以使用代码进行修改,例如通过anim = GetComponent<Animation>();和foreach (AnimationState state in anim) {state.speed = 0.5F;}来将动画的速度设置为0.5倍速。因此,animation的speed属性可以根据实际需求进行调整。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Unity基础(06)—— 动画(Animation)的录制与播放](https://blog.csdn.net/Jeffxu_lib/article/details/90602531)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Untiy中控制Animation的播放速度](https://blog.csdn.net/u013012420/article/details/102717840)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文