---
title: scene
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/entity/scene
---

# scene

The scene that owns the entity.

## Declaration

```swift
@MainActor @preconcurrency var scene: Scene? { get }
```

## Discussion

Discussion An entity belongs to a scene if the entity is part of a hierarchy that’s rooted in the scene’s anchors collection. The value of the property is nil if the entity isn’t currently attached to any scene.

## See Also

### Inspecting an entity

- [name](realitykit/entity/name.md)
- [findEntity(named:)](realitykit/entity/findentity(named:).md)
- [debugDescription](realitykit/entity/debugdescription.md)
