SpriteGoal QML Type
用于改变精灵粒子的状态。更多
| Import Statement: | import QtQuick.Particles |
| Inherits: |
属性
- goalState : string
- jump : bool
- systemStates : bool
详细说明
财产文件
goalState : string
受影响粒子应移动到的精灵名称。
设置了 goalState 后,它会忽略任何路径权重(包括 0),并沿着最快到达 goalState 的路径前进。它会经过路径上的中间状态。
jump : bool
如果为 "true",受影响的精灵将直接跳转到目标状态,而不是通过最短的有效路径到达目标状态。它们也不会结束当前状态,而是会立即移动到目标状态的起点。
默认为假。
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.