---
title: "sceneSourceWithURL:options:"
framework: scenekit
role: symbol
role_heading: Type Method
path: "scenekit/scnscenesource/scenesourcewithurl:options:"
---

# sceneSourceWithURL:options:

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

## Declaration

```occ
+ (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

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

## Discussion

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: method instead.

## See Also

### Creating a Scene Source

- [sceneSourceWithData:options:](scenekit/scnscenesource/scenesourcewithdata:options:.md)
- [init(url:options:)](scenekit/scnscenesource/init(url:options:)-rw0y.md)
- [init(data:options:)](scenekit/scnscenesource/init(data:options:).md)
