<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ShaderGraph/NodeLibrary/makeNode(from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:11ShaderGraphAAC11NodeLibraryC04makeC04fromAB0C0VAB0C10DefinitionV_tKF"
  },
  "title" : "makeNode(from:)"
}
-->

# makeNode(from:)

Creates a node instance of the given definition.

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

## Return Value

A [`ShaderGraph.Node`](/documentation/RealityKit/ShaderGraph/Node) that can be added to a [`ShaderGraph`](/documentation/RealityKit/ShaderGraph).

## Discussion> Throws: If the definition does not belong to this library.

---

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)