<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "USDKit",
  "identifier" : "/documentation/USDKit/USDStageComponent/coordinateSpace(on:at:timeCode:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "USDKit",
      "RealityKit",
      "_USDKit_RealityKit"
    ],
    "preciseIdentifier" : "s:18_USDKit_RealityKit17USDStageComponentV15coordinateSpace2on2at8timeCodeQr0B10Foundation6EntityC_0A08USDLayerV4PathVAK0D0V04TimeK0VSgtFZ"
  },
  "title" : "coordinateSpace(on:at:timeCode:)"
}
-->

# coordinateSpace(on:at:timeCode:)

Returns a coordinate space anchored to the closest rendered ancestor of `path`.

```
@MainActor static func coordinateSpace(on root: Entity, at path: USDLayer.Path, timeCode: USDStage.TimeCode? = nil) -> some CoordinateSpace3DFloat
```

## Parameters

`root`

The entity hosting the `USDStageComponent`.

`path`

The prim path to map.

`timeCode`

Time code at which to evaluate. Defaults to `component.timeCode`.

---

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)