이 페이지에서

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.