---
title: "makeNode(from:)"
framework: realitykit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "realitykit/shadergraph/nodelibrary/makenode(from:)"
---

# makeNode(from:)

Creates a node instance of the given definition.

## Declaration

```swift
final func makeNode(from definition: ShaderGraph.NodeDefinition) throws -> ShaderGraph.Node
```

## Return Value

Return Value A ShaderGraph.Node that can be added to a ShaderGraph.

## Discussion

Discussion note: If the definition does not belong to this library.
