AnimationController QML Type
A controller type for animations. More...
|Import Statement:||import Qt3D.Animation 2.12|
- activeAnimationGroup : int
- animationGroups : list<AnimationGroup>
- entity : Entity
- position : real
- positionOffset : real
- positionScale : real
- recursive : bool
AnimationController type controls the selection and playback of animations. The type can be used to find all animations from Entity tree and create AnimationGroups from the animations with the same name. The user can select which animation group is currently controlled with the animation controller by setting the active animation. The animation position is then propagated to that group after scaling and offsetting the provided position value with the positionScale and positionOffset values.
Note: that the animation controller doesn't have internal timer, but instead the user is responsible for updating the position property in timely manner.
activeAnimationGroup : int
Holds the currectly active animation group.
entity : Entity
Holds the entity animations are gathered and grouped from. If the controller already holds animations, they are cleared.
position : real
positionOffset : real
Holds the position offset of the animation.
positionScale : real
Holds the position scale of the animation.
recursive : bool
Holds whether the recursively search the entity tree when gathering animations from the entity. If set to true, the animations are searched also from the child entities of the entity. If set to false, only the entity passed to the controller is searched.
Returns the index of the animation with name. Returns -1 if no AnimationGroup with the given name is found.
© 2019 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.