<!--
{
  "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/DirectionalSwitchingResolutions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation22LevelOfDetailComponentV17SelectionStrategyV16ResolutionMetricV31DirectionalSwitchingResolutionsV"
  },
  "title" : "LevelOfDetailComponent.SelectionStrategy.ResolutionMetric.DirectionalSwitchingResolutions"
}
-->

# 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.

```
struct DirectionalSwitchingResolutions
```

## Topics

### Creating switching resolutions

[`init(positiveX: Float, negativeX: Float, positiveY: Float, negativeY: Float, positiveZ: Float, negativeZ: Float)`](/documentation/RealityKit/LevelOfDetailComponent/SelectionStrategy/ResolutionMetric/DirectionalSwitchingResolutions/init(positiveX:negativeX:positiveY:negativeY:positiveZ:negativeZ:))

### Setting axis resolutions

[`var positiveX: Float`](/documentation/RealityKit/LevelOfDetailComponent/SelectionStrategy/ResolutionMetric/DirectionalSwitchingResolutions/positiveX)

[`var negativeX: Float`](/documentation/RealityKit/LevelOfDetailComponent/SelectionStrategy/ResolutionMetric/DirectionalSwitchingResolutions/negativeX)

[`var positiveY: Float`](/documentation/RealityKit/LevelOfDetailComponent/SelectionStrategy/ResolutionMetric/DirectionalSwitchingResolutions/positiveY)

[`var negativeY: Float`](/documentation/RealityKit/LevelOfDetailComponent/SelectionStrategy/ResolutionMetric/DirectionalSwitchingResolutions/negativeY)

[`var positiveZ: Float`](/documentation/RealityKit/LevelOfDetailComponent/SelectionStrategy/ResolutionMetric/DirectionalSwitchingResolutions/positiveZ)

[`var negativeZ: Float`](/documentation/RealityKit/LevelOfDetailComponent/SelectionStrategy/ResolutionMetric/DirectionalSwitchingResolutions/negativeZ)

### Initializers

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

Creates an empty `DirectionalSwitchingResolutions` for the base level.

---

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)