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 型で定義された一連のアニメーションをレンダリングおよび制御します。
詳細については、「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.