<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/OrnamentAttachmentAnchor/scene(_:)-1l8wf",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI24OrnamentAttachmentAnchorV5sceneyAcA11UnitPoint3DVFZ"
  },
  "title" : "scene(_:)"
}
-->

# scene(_:)

The anchor point for the ornament expressed as a 3D unit point relative
to the scene.

```
static func scene(_ anchor: UnitPoint3D) -> OrnamentAttachmentAnchor
```

## Discussion

Use this method when inside a volume.

---

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)