<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNSceneSource/data",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNSceneSource(py)data"
  },
  "title" : "data"
}
-->

# data

The data object from which the scene source loads scene content.

```
var data: Data? { get }
```

## Discussion

If the scene source was created using the [`sceneSourceWithData:options:`](/documentation/SceneKit/SCNSceneSource/sceneSourceWithData:options:) or [`init(data:options:)`](/documentation/SceneKit/SCNSceneSource/init(data:options:)) method, this property’s value is the data from which the scene source was created. If the scene source was created from a scene file using the the [`sceneSourceWithURL:options:`](/documentation/SceneKit/SCNSceneSource/sceneSourceWithURL:options:) or [`init(url:options:)`](/documentation/SceneKit/SCNSceneSource/init(url:options:)-rw0y) method, this property’s value is the data loaded from that URL at the time the scene source was created.

---

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)