本页内容

AbstractClipAnimator QML Type

AbstractClipAnimator 是提供动画播放功能的类型的基类。更多内容...

Import Statement: import Qt3D.Animation 2.12
In C++: QAbstractClipAnimator
Inherited By:

BlendedClipAnimator and ClipAnimator

Status: Technology preview

此类型处于技术预览阶段,可能会有变更。

属性

详细说明

Entity 可以聚合 AbstractClipAnimator 的子类,从而提供动画功能。动画组件提供了一个用于控制动画(例如开始、停止)的接口。 每种动画器类型都需要某种形式的动画数据(例如 `AbstractAnimationClip`),以及一个 `ChannelMapper`,该映射器描述了动画片段中的通道应如何映射到您希望进行动画处理的对象的属性上。

提供以下子类:

属性文档

channelMapper : ChannelMapper

该属性保存了 ChannelMapper,用于控制动画片段中的通道如何映射到目标对象的属性上。

clock : Clock

时钟控制着动画的播放速度。

loops : int

该属性用于指定动画应播放的次数。

默认情况下,loops 的值为 1:动画将播放一次后停止。

如果设置为 QAbstractClipAnimator::Infinite,动画将持续循环播放,直到被显式停止。

normalizedTime : real

该属性存储了片段的归一化时间。

running : bool

该属性保存一个布尔值,用于指示动画当前是否正在运行。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.