このページでは

ParticleCustomShape3D QML Type

エミッターおよびアフェクター用に、カスタムパーティクル形状を読み込みます。詳細...

Import Statement: import QtQuick3D.Particles3D
Since: Qt 6.3
Inherits:

ParticleAbstractShape3D

プロパティ

詳細な説明

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.