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)
상세 설명
애니메이션 컨트롤러 유형은 애니메이션의 선택 및 재생을 제어합니다. 이 유형은 엔티티 트리에서 모든 애니메이션을 찾고 같은 이름의 애니메이션에서 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.