---
title: "init(url:)"
framework: modelio
role: symbol
role_heading: Initializer
path: "modelio/mdlasset/init(url:)-1f4ym"
---

# init(url:)

Initializes an asset from the file at the specified URL.

## Declaration

```swift
init(url URL: URL)
```

## Parameters

- `URL`: A URL specifying the location an asset file.

## Return Value

Return Value A new asset object.

## Discussion

Discussion Use the canImportFileExtension(_:) method to determine whether Model I/O  can import an asset.

## See Also

### Creating an Asset

- [canImportFileExtension(_:)](modelio/mdlasset/canimportfileextension(_:).md)
- [init(bufferAllocator:)](modelio/mdlasset/init(bufferallocator:).md)
- [init(url:vertexDescriptor:bufferAllocator:)](modelio/mdlasset/init(url:vertexdescriptor:bufferallocator:)-1tchi.md)
- [init(url:vertexDescriptor:bufferAllocator:preserveTopology:error:)](modelio/mdlasset/init(url:vertexdescriptor:bufferallocator:preservetopology:error:)-510xi.md)
