<!--
{
  "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(switchingResolutions:boundingBox:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation22LevelOfDetailComponentV17SelectionStrategyV16resolutionMetric20switchingResolutions11boundingBoxAESayAE010ResolutionJ0V020DirectionalSwitchingL0VG_AA08BoundingN0VtFZ"
  },
  "title" : "resolutionMetric(switchingResolutions:boundingBox:)"
}
-->

# resolutionMetric(switchingResolutions:boundingBox:)

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

```
static func resolutionMetric(switchingResolutions: [LevelOfDetailComponent.SelectionStrategy.ResolutionMetric.DirectionalSwitchingResolutions], boundingBox: BoundingBox) -> LevelOfDetailComponent.SelectionStrategy
```

## Parameters

`switchingResolutions`

An array of `ResolutionMetric.DirectionalSwitchingResolutions`. The `ResolutionMetric.DirectionalSwitchingResolutions` at index `i` corresponds to the LOD level `i + 1`.

`boundingBox`

The bounding box of the entity used when calculating the switching resolutions .

## Return Value

A configured resolution metric selection strategy.

---

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)