InstanceRange QML Type
Specifies a range for RandomInstancing. More...
Import Statement: | import QtQuick3D.Helpers . |
Inherits: |
Properties
- from : Variant
(preliminary)
- proportional : bool
(preliminary)
- to : Variant
(preliminary)
Detailed Description
The InstanceRange QML type is used to specify the range of variation for RandomInstancing attributes.
Property Documentation
This property is under development and is subject to change.
This property specifies the lower bound of the range. The type needs to match the type of the attribute that this range is applied to.
proportional : bool |
This property is under development and is subject to change.
This property determines whether the components of the attribute vary proportionally or independently. The default value is true
, meaning that all components are independent.
For example, the following defines a grayscale color range:
InstanceRange { from: "black" to: "white" proportional: true }
While the following defines a range that covers all colors
InstanceRange { from: "black" to: "white" }
This property is under development and is subject to change.
This property specifies the upper bound of the range. The type needs to match the type of the attribute that this range is applied to.
© 2021 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.