<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLURLTexture/init(url:name:)-1y03u",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLURLTexture(im)initWithURL:name:"
  },
  "title" : "init(url:name:)"
}
-->

# init(url:name:)

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

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

## Parameters

`URL`

The URL from which to load texture data.

`name`

The [`name`](/documentation/ModelIO/MDLNamed/name) property for the new texture object.

## Return Value

A new URL-backed texture.

## Discussion

This initializer does not load texel data from the URL; the [`MDLURLTexture`](/documentation/ModelIO/MDLURLTexture) class automatically loads data and caches it for reuse when you use one of the [`MDLTexture`](/documentation/ModelIO/MDLTexture) methods listed in Accessing Texture Data.

---

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)