AnimationController QML Type
アニメーションのコントローラータイプ。詳細...
Import Statement: | import Qt3D.Animation 2.8 |
In C++: | QAnimationController |
Status: | Deprecated |
プロパティ
- activeAnimationGroup : int
- animationGroups : list<AnimationGroup>
- entity : Entity
- position : real
- positionOffset : real
- positionScale : real
- recursive : bool
方法
- int getAnimationIndex(name)
- AnimationGroup getGroup(index)
詳細説明
AnimationController 型はアニメーションの選択と再生を制御する。この型を使用して、Entity ツリーからすべてのアニメーションを検索し、同じ名前のアニメーションからAnimationGroups を作成することができます。ユーザーは、アクティブなアニメーションを設定することで、アニメーションコントローラで現在制御されているアニメーショングループを選択できます。アニメーションの位置は、positionScale とpositionOffset の値で指定された位置の値をスケーリングしてオフセットした後、そのグループに伝搬されます。
注意: アニメーションコントローラは内部タイマーを持ちませんが、代わりに、ユーザーがタイムリーにポジションプロパティを更新する責任があります。
プロパティの説明
activeAnimationGroup : int |
現在アクティブなアニメーショングループを保持します。
animationGroups : list<AnimationGroup> |
コントローラ内のアニメーショングループのリストを保持します。
entity : Entity |
アニメーションが収集され、グループ化されたエンティティを保持します。コントローラがすでにアニメーションを保持している場合、それらはクリアされます。
position : real |
アニメーションの現在の位置を保持します。位置が設定されると、positionScale/positionOffset 、スケーリングされ、オフセットされ、アクティブなアニメーショングループに伝搬されます。
positionOffset : real |
アニメーションの位置オフセットを保持します。
positionScale : real |
アニメーションの位置スケールを保持します。
recursive : bool |
アニメーションをエンティティから収集するときに、再帰的にエンティティツリーを検索するかどうかを保持します。trueに設定すると、アニメーションはエンティティの子エンティティからも検索されます。falseに設定すると、コントローラに渡されたエンティティのみが検索されます。
メソッドの説明
int getAnimationIndex(name) |
name を持つアニメーションのインデックスを返します。指定した名前のAnimationGroup が見つからない場合は -1 を返します。
AnimationGroup getGroup(index) |
指定されたindex を持つAnimationGroup を返します。
© 2025 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.