init(named:from:)
Loads a ShaderGraphMaterial from a named material within a USD file.
Declaration
init(named name: String, from data: Data) async throwsParameters
- 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)