QLevelOfDetailSwitch

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

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QLevelOfDetailSwitch

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

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QLevelOfDetailSwitch with the specified parent.