<!--
{
  "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/sceneSourceWithURL:options:",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNSceneSource(cm)sceneSourceWithURL:options:"
  },
  "title" : "sceneSourceWithURL:options:"
}
-->

# sceneSourceWithURL:options:

Creates a scene source that reads the scene graph from a specified file.

```
+ (instancetype) sceneSourceWithURL:(NSURL *) url options:(NSDictionary<NSString *,id> *) options;
```

## Parameters

`url`

A URL identifying the location of a scene file in a format recognized by SceneKit.

`options`

A dictionary containing options that affect scene loading. See `Scene Loading Options` for available keys and values. Pass `nil` to use default options.

## Return Value

A new, initialized scene source object, or `nil` if initialization was not successful.

## Discussion

If you have the contents of a scene file but not the file itself (for example, if your app downloads scene files from the network), use the [`sceneSourceWithData:options:`](/documentation/SceneKit/SCNSceneSource/sceneSourceWithData:options:) method instead.

---

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)