---
title: "init(named:from:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/shadergraphmaterial/init(named:from:)"
---

# init(named:from:)

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

## Declaration

```swift
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

Return Value A ShaderGraphMaterial object from the file with the name specified.

## Discussion

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