SpriteGoal QML Type
用于更改精灵粒子的状态。更多内容...
| Import Statement: | import QtQuick.Particles |
| Inherits: |
属性
- goalState : string
- jump : bool
- systemStates : bool
详细说明
物业文件
goalState : string
受影响粒子应移动到的Sprite的名称。
精灵状态具有预定义的持续时间和状态转换规则,设置 goalState 后,系统将忽略所有路径权重(包括 0),并沿能最快到达该目标状态的路径移动。在此路径上,它将经过所有中间状态。
jump : bool
如果为真,受影响的精灵将直接跳转到目标状态,而不是沿着最短的有效路径到达那里。此外,它们也不会完成当前状态,而是立即移动到目标状态的起始位置。
默认值为 false。
systemStates : bool
已弃用,请改用GroupGoal
© 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.