class QLevelOfDetailSwitch#

Provides a way of enabling child entities based on distance or screen size. More

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QLevelOfDetailSwitch

Synopsis#

Methods#

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:

parentQNode

Constructs a new QLevelOfDetailSwitch with the specified parent.