SpriteSequence QML Type
スプライトのアニメーションを描画します。もっと詳しく...
| Import Statement: | import QtQuick |
| Inherits: |
プロパティ
- currentSprite : string
- goalSprite : string
- interpolate : bool
- running : bool
- sprites : list<Sprite>
方法
- void jumpTo(string sprite)
詳細説明
SpriteSequence は、Sprite タイプによって定義されたアニメーションのリストをレンダリングし、制御します。
詳細については、スプライトアニメーションの概要を参照してください。
SpriteSequence によるスプライトアニメーションも参照してください 。
プロパティの説明
currentSprite : string [read-only]
現在アニメーションしているSprite の名前。
goalSprite : string
アニメーションが移動すべきSprite の名前。
スプライトのステートには、定義された持続時間とそれらの間の遷移があります。goalSprite を設定すると、パスの重み付け(0 を含む)を無視し、goalSprite に最も早く到達する(アニメーションが最も少ない)パスに向かいます。そのパス上の中間状態を通過し、その間のアニメーションを行います。
goalSprite の始点からgoalSprite に戻ることが可能であれば、goalSprite が"" に設定されるか、到達不可能な状態になるまで、それを続ける。
interpolate : bool
true の場合、スプライトフレーム間で補間を行い、アニメーションをより滑らかに見せる。
デフォルトはtrue です。
running : bool
スプライトがアニメーションしているかどうか。
デフォルトはtrue 。
sprites : list<Sprite> [read-only]
描画するスプライト。スプライトはこのアイテムのサイズにスケーリングされます。
メソッドのドキュメント
void jumpTo(string sprite)
この関数により、SpriteSequence は指定されたsprite に即座にジャンプする。中間スプライトは再生されない。
© 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.