<!--
{
  "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/SCNGeometry/material(named:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNGeometry(im)materialWithName:"
  },
  "title" : "material(named:)"
}
-->

# material(named:)

Returns the first material attached to the geometry with the specified name.

```
func material(named name: String) -> SCNMaterial?
```

## Parameters

`name`

The name of the material to be retrieved.

## Return Value

A material object with the specified name.

## Discussion

You can use the [`name`](/documentation/SceneKit/SCNMaterial/name) property of each [`SCNMaterial`](/documentation/SceneKit/SCNMaterial) object to make managing your scene graph easier. Materials loaded from a scene file may have names assigned by an artist using a 3D authoring tool.

If a geometry has multiple materials attached with the same name, this method returns the first according to the order of the [`materials`](/documentation/SceneKit/SCNGeometry/materials) array.

---

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)