InstanceRange QML Type

RandomInstancing 의 범위를 지정합니다. 더 보기...

Import Statement: import QtQuick3D.Helpers
Since: Qt 6.2
Inherits:

Object3D

속성

상세 설명

InstanceRange QML 유형은 RandomInstancing 속성의 변형 범위를 지정하는 데 사용됩니다.

속성 문서

from : Variant

이 속성은 범위의 하한을 지정합니다. 유형은 이 범위가 적용되는 속성의 유형과 일치해야 합니다.


proportional : bool

이 속성은 속성의 구성 요소가 비례적으로 변할지 또는 독립적으로 변할지를 결정합니다. 기본값은 true 으로, 모든 구성 요소가 독립적임을 의미합니다.

예를 들어 다음은 모델의 종횡비를 유지하는 배율 범위를 정의합니다:

InstanceRange {
    from: Qt.vector3d(1, 1, 1)
    to: Qt.vector3d(5, 5, 5)
    proportional: true
}

그레이 스케일 색상 범위를 정의합니다:

InstanceRange {
    from: "black"
    to: "white"
    proportional: true
}

다음은 모든 색상을 포함하는 범위를 정의합니다.

InstanceRange {
    from: "black"
    to: "white"
}

to : Variant

이 속성은 범위의 상한을 지정합니다. 유형은 이 범위가 적용되는 속성의 유형과 일치해야 합니다.


© 2025 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.