<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNMaterialProperty/init(contents:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNMaterialProperty(cm)materialPropertyWithContents:"
  },
  "title" : "init(contents:)"
}
-->

# init(contents:)

Creates a new material property object with the specified contents.

```
convenience init(contents: Any)
```

## Parameters

`contents`

The visual contents of the material property—a color, image, or source of animated content. For details, see the discussion of the  [`contents`](/documentation/SceneKit/SCNMaterialProperty/contents) property.

## Return Value

A new material property object.

## Discussion

Newly created [`SCNMaterial`](/documentation/SceneKit/SCNMaterial) objects contain [`SCNMaterialProperty`](/documentation/SceneKit/SCNMaterialProperty) instances for all of their visual properties. To change a material’s visual properties, you modify those instances rather than creating new material property objects.

You create new [`SCNMaterialProperty`](/documentation/SceneKit/SCNMaterialProperty) instances to provide textures for use with custom GLSL shaders—for details, see [`SCNShadable`](/documentation/SceneKit/SCNShadable).

---

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)