本页内容

ClipAnimator QML Type

ClipAnimator 是一个提供简单动画播放功能的组件。更多内容...

Import Statement: import Qt3D.Animation 2.12
In C++: QClipAnimator
Inherits:

AbstractClipAnimator

Status: Technology preview

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

属性

详细说明

实体(Entity)可以聚合一个 ClipAnimator 实例,从而获得播放动画片段以及将计算出的动画值应用到 QObject 属性的能力。

动画关键帧数据通过 clip 属性提供。该属性可通过 AnimationClip 进行编程创建,或使用 AnimationClipLoader 从文件中加载。

为了将动画片段中数据通道播放出的值应用到属性上,剪辑动画器需要将一个 ChannelMapper 对象赋值给 channelMapper 属性。

用于控制动画器的属性由基类 `AbstractClipAnimator ` 提供。

另请参阅 AbstractClipAnimator 、AbstractAnimationClip 、ChannelMapper 以及BlendedClipAnimator 。

属性文档

clip : var

该属性存储了包含待播放关键帧数据的动画片段。关键帧数据可以指定为 AnimationClip 或 AnimationClipLoader。

© 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.