One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

LevelOfDetailComponent.SelectionStrategy

struct · iOS 27.0+ · SDK 27.1

struct SelectionStrategy

The strategy used to select which detail level to display.

Members (3)

static · iOS 27.0+

screenArea

TypeScript
static screenArea(thresholds: Array<number>): LevelOfDetailComponent_SelectionStrategy
Swift declaration
static func screenArea(_ thresholds: [Float]) -> LevelOfDetailComponent.SelectionStrategy

Switch levels based on projected screen area (0.0 = invisible, 1.0 = fills screen). Each threshold specifies the minimum screen area for a level, in descending order.

static · iOS 27.0+

cameraDistance

TypeScript
static cameraDistance(thresholds: Array<number>): LevelOfDetailComponent_SelectionStrategy
Swift declaration
static func cameraDistance(_ thresholds: [Float]) -> LevelOfDetailComponent.SelectionStrategy

Switch levels based on distance from the camera. Each threshold specifies the maximum camera distance for a level. The last threshold is typically `.infinity` to catch all remaining distances.

static · iOS 27.0+

resolutionMetric

TypeScript
static resolutionMetric(switchingResolutions: Array<LevelOfDetailComponent_SelectionStrategy_ResolutionMetric_DirectionalSwitchingResolutions>, boundingBox: BoundingBox): LevelOfDetailComponent_SelectionStrategy
Swift declaration
static func resolutionMetric(switchingResolutions: [LevelOfDetailComponent.SelectionStrategy.ResolutionMetric.DirectionalSwitchingResolutions], boundingBox: BoundingBox) -> LevelOfDetailComponent.SelectionStrategy

Creates a resolution metric for a level of detail component to switch with. - 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 . - Returns: A configured resolution metric selection strategy.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →