SpriteSequence QML Type

スプライトのアニメーションを描画します。もっと詳しく...

Import Statement: import QtQuick
Inherits:

Item

プロパティ

方法

詳細説明

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]

描画するスプライトを指定します。スプライトはこのアイテムのサイズにスケーリングされます。


メソッドの説明

jumpTo(string sprite)

この関数はSpriteSequence を指定されたsprite に即座にジャンプさせます。中間のスプライトは再生されません。


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