<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LevelOfDetailComponent/SelectionStrategy/ResolutionMetric",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation22LevelOfDetailComponentV17SelectionStrategyV16ResolutionMetricV"
  },
  "title" : "LevelOfDetailComponent.SelectionStrategy.ResolutionMetric"
}
-->

# LevelOfDetailComponent.SelectionStrategy.ResolutionMetric

```
struct ResolutionMetric
```

## Topics

### Creating a resolution metric

[`init(switchingResolutions: [LevelOfDetailComponent.SelectionStrategy.ResolutionMetric.DirectionalSwitchingResolutions], boundingBox: BoundingBox)`](/documentation/RealityKit/LevelOfDetailComponent/SelectionStrategy/ResolutionMetric/init(switchingResolutions:boundingBox:))

Creates a resolution metric for a level of detail component to switch with.

### Configuring the metric

[`var switchingResolutions: [LevelOfDetailComponent.SelectionStrategy.ResolutionMetric.DirectionalSwitchingResolutions]`](/documentation/RealityKit/LevelOfDetailComponent/SelectionStrategy/ResolutionMetric/switchingResolutions)

[`struct DirectionalSwitchingResolutions`](/documentation/RealityKit/LevelOfDetailComponent/SelectionStrategy/ResolutionMetric/DirectionalSwitchingResolutions)

A struct containing the ideal switching resolutions for a single detail level in a `LevelOfDetailComponent` when viewed from a specific direction. Note that switching may not actually occur at these resolutions depending on device performance.

[`let boundingBox: BoundingBox`](/documentation/RealityKit/LevelOfDetailComponent/SelectionStrategy/ResolutionMetric/boundingBox)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)