<!--
{
  "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/init(url:options:)-rw0y",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNSceneSource(im)initWithURL:options:"
  },
  "title" : "init(url:options:)"
}
-->

# init(url:options:)

Initializes a scene source for reading the scene graph from a specified file.

```
init?(url: URL, options: [SCNSceneSource.LoadingOption : Any]? = nil)
```

## Parameters

`url`

The URL identifying the scene.

`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

An 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 [`init(data:options:)`](/documentation/SceneKit/SCNSceneSource/init(data:options:)) method instead.

## See Also

[`+ (instancetype) sceneSourceWithURL:(NSURL *) url options:(NSDictionary<NSString *,id> *) options;`](/documentation/SceneKit/SCNSceneSource/sceneSourceWithURL:options:)

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

[`+ (instancetype) sceneSourceWithData:(NSData *) data options:(NSDictionary<NSString *,id> *) options;`](/documentation/SceneKit/SCNSceneSource/sceneSourceWithData:options:)

Creates a scene source that reads the scene graph contained in an `NSData` object.



---

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)