<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/Entity/CoordinateSpaceReference/scene",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation6EntityC24CoordinateSpaceReferenceO5sceneyA2EmF"
  },
  "title" : "Entity.CoordinateSpaceReference.scene"
}
-->

# Entity.CoordinateSpaceReference.scene

A reference to an entity’s parent window scene.

```
case scene
```

## Discussion

You can use this enum case to get an entity’s relative transform in its parented window scene:

```swift
let transformInWindowSpace = windowEntity.transformMatrix(relativeTo: .scene)
```

> Note: If an entity is parented under an **immersive space**, calling ``Entity/transformMatrix(relativeTo:)-70l1k`` with the case `scene` returns `nil`.

---

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)