init(levels:switchingAt:)
Creates a new Level of Detail component.
Declaration
init(levels: [LevelOfDetailComponent.DetailLevel], switchingAt strategy: LevelOfDetailComponent.SelectionStrategy)Parameters
- levels:
Array of detail levels, where each level contains entities to show at that level.
- strategy:
The selection strategy with threshold values.