<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ShaderGraphMaterial/init(named:from:)-9qt59",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation19ShaderGraphMaterialV5named4fromACSS_0B04DataVtYaKcfc"
  },
  "title" : "init(named:from:)"
}
-->

# init(named:from:)

Loads a ShaderGraphMaterial from a named material within a USD file.

```
init(named name: String, from data: Data) async throws
```

## Parameters

`name`

The name of the ShaderGraphMaterial within the USD file.

`data`

A data object containing USD file data

## Return Value

A ShaderGraphMaterial object from the file with the name specified.

## Discussion

Supported file formats are USD (.usd, .usda, .usdc, .usdz)

---

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)