scene
The scene that owns the entity.
Declaration
@MainActor @preconcurrency var scene: Scene? { get }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.