---
title: "loadTextures(using:)"
framework: modelio
role: symbol
role_heading: Instance Method
path: "modelio/mdlmaterial/loadtextures(using:)"
---

# loadTextures(using:)

Loads textures using resolver for string paths and NSURLs.

## Declaration

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

## Parameters

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

## Discussion

Discussion Iterates all material properties. If there are string values or NSURL values, and you can resolve the values as textures, then MDLTextureSampler values replaces the string and NSURL values.

## See Also

### Working with textures using resolvers

- [resolveTextures(with:)](modelio/mdlmaterial/resolvetextures(with:).md)
