- Qt 6.12
- Qt 3D
- QML Types
- Qt3D.Render (Deprecated)
- LevelOfDetailSwitch
- Qt 6.12.0 Reference Documentation

# LevelOfDetailSwitch QML Type

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

Import Statement: | `import Qt3D.Render 2.12`
In C++: | QLevelOfDetailSwitch
Inherits: | Component3D
Status: | Deprecated

This type is deprecated. We strongly advise against using it in new code.

- List of all members, including inherited members

## Properties

- currentIndex : int

## Detailed Description

This component is assigned to an entity. When the entity changes distance relative to the camera, the LevelOfDetailSwitch will disable all the child entities except the one matching index currentIndex.

See also LevelOfDetail.

## Property Documentation

### currentIndex : int

The index of the presently selected child entity.