ParticleCustomShape3D QML Type
エミッタとアフェクタのカスタムパーティクル形状をロードします。詳細...
| Import Statement: | import QtQuick3D.Particles3D |
| Since: | Qt 6.3 |
| Inherits: |
プロパティ
- randomizeData : bool
- source : url
詳細説明
ParticleCustomShape3D要素は、カスタムパーティクル形状をロードするために使用できます。
例えば、heart.cborで定義された位置からパーティクルを放出させることができます:
ParticleEmitter3D {
shape: ParticleCustomShape3D {
source: "heart.cbor"
}
...
}CBORシェイプファイルのフォーマットは以下の通りです:
[
"QQ3D_SHAPE", // string
version, // integer
[
posX, // float
posY, // float
posZ, // float
posX, // float
...
]
]シェイプファイルの生成には、shapegenツールを使用します。
プロパティのドキュメント
randomizeData : bool
このプロパティは、パーティクルをソースで指定された順序ではなく、ランダムな順序で使用するかどうかを保持します。
デフォルト値はfalse です。
source : url
このプロパティは、シェイプファイルの場所を保持する。
警告: source は信頼されたコンテンツを含むことが期待されています。アプリケーション開発者は、アプリケーションの一部ではないユーザー提供のソースファイルを渡す前に、潜在的な影響を慎重に検討することをお勧めします。
© 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.