- class QLevelOfDetailSwitch¶
Provides a way of enabling child entities based on distance or screen size. More…
Synopsis¶
Methods¶
def
__init__()
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.- __init__([parent=None])¶
- Parameters:
parent –
QNode
Constructs a new
QLevelOfDetailSwitch
with the specifiedparent
.