<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLMaterial/loadTextures(using:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLMaterial(im)loadTexturesUsingResolver:"
  },
  "title" : "loadTextures(using:)"
}
-->

# loadTextures(using:)

Loads textures using resolver for string paths and NSURLs.

```
func loadTextures(using resolver: any MDLAssetResolver)
```

## Parameters

`resolver`

If non-nil, the resolver converts stringValues or NSURLs to MDLTextureSampler values.

## Discussion

Iterates all material properties. If there are string values or NSURL values, and you can resolve the values as textures, then [`MDLTextureSampler`](/documentation/ModelIO/MDLTextureSampler) values replaces the string and NSURL values.

---

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)