---
title: "coordinateSpace(on:at:timeCode:)"
framework: usdkit
role: symbol
role_heading: Type Method
platforms: [visionOS 27.0+]
path: "usdkit/usdstagecomponent/coordinatespace(on:at:timecode:)"
---

# coordinateSpace(on:at:timeCode:)

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

## Declaration

```swift
@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.
