<!--
{
  "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/MDLMaterialProperty/init(name:semantic:url:)-2ldk4",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLMaterialProperty(im)initWithName:semantic:URL:"
  },
  "title" : "init(name:semantic:url:)"
}
-->

# init(name:semantic:url:)

Initializes a material property with a URL value.

```
convenience init(name: String, semantic: MDLMaterialSemantic, url URL: URL?)
```

## Parameters

`name`

A descriptive name for the material property. For details, see the [`name`](/documentation/ModelIO/MDLMaterialProperty/name) property.

`semantic`

The semantic meaning for the material property’s value. For details, see the [`semantic`](/documentation/ModelIO/MDLMaterialProperty/semantic) property.

`URL`

The URL value for the material property—typically, the URL to a texture image.

## Return Value

A new material property object whose [`type`](/documentation/ModelIO/MDLMaterialProperty/type) property is [`MDLMaterialPropertyType.URL`](/documentation/ModelIO/MDLMaterialPropertyType/URL).

## Discussion

A renderer (or other software component processing a material) is responsible for loading a texture image from the specified URL.

---

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)