QLevelOfDetailSwitch#
Provides a way of enabling child entities based on distance or screen size. More…
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
This component is assigned to an entity. When the entity changes distance relative to the camera, the QLevelOfDetailSwitch
will disable all the child entities except the one matching index Qt3DRender::QLevelOfDetailSwitch::currentIndex.
- class PySide6.Qt3DRender.Qt3DRender.QLevelOfDetailSwitch([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QLevelOfDetailSwitch
with the specified parent
.