SpriteSequence QML Type
스프라이트 애니메이션을 그립니다. 더 보기...
Import Statement: | import QtQuick |
Inherits: |
속성
- currentSprite : string
- goalSprite : string
- interpolate : bool
- running : bool
- sprites : list<Sprite>
방법
- jumpTo(string sprite)
상세 설명
스프라이트 시퀀스는 Sprite 유형으로 정의된 애니메이션 목록을 렌더링하고 제어합니다.
자세한 내용은 스프라이트 애니메이션 개요를 참조하세요.
스프라이트 애니메이션과 스프라이트 시퀀스도참조하십시오 .
속성 문서
goalSprite : string |
애니메이션이 이동해야 하는 Sprite 의 이름입니다.
스프라이트 상태에는 기간과 상태 간 전환이 정의되어 있으며, goalSprite
을 설정하면 0
을 포함한 모든 경로 가중치를 무시하고 goalSprite
에 가장 빨리 도달하는 경로(애니메이션이 가장 적은 경로)로 이동합니다. 해당 경로의 중간 상태를 통과하고 해당 기간 동안 애니메이션을 적용합니다.
goalSprite
의 시작점에서 goalSprite
로 돌아갈 수 있는 경우 goalSprite
이 ""
또는 도달할 수 없는 상태로 설정될 때까지 계속 그렇게 합니다.
interpolate : bool |
true
인 경우 스프라이트 프레임 사이에 보간이 수행되어 애니메이션이 더 부드럽게 표시됩니다.
기본값은 true
입니다.
running : bool |
스프라이트가 애니메이션 중인지 여부.
기본값은 true
입니다.
메서드 문서
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.