---
title: "init(url:name:)"
framework: modelio
role: symbol
role_heading: Initializer
path: "modelio/mdlurltexture/init(url:name:)-1y03u"
---

# init(url:name:)

Initializes a texture that loads its texel data from a file at the specified URL.

## Declaration

```swift
init(url URL: URL, name: String?)
```

## Parameters

- `URL`: The URL from which to load texture data.
- `name`: The doc://com.apple.modelio/documentation/ModelIO/MDLNamed/name property for the new texture object.

## Return Value

Return Value A new URL-backed texture.

## Discussion

Discussion This initializer does not load texel data from the URL; the MDLURLTexture class automatically loads data and caches it for reuse when you use one of the MDLTexture methods listed in Accessing Texture Data.
