---
title: "validateAddingNode(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "realitykit/shadergraph/validateaddingnode(_:)"
---

# validateAddingNode(_:)

Validates that a node can be added to the graph without adding it, throwing a descriptive error if not.

## Declaration

```swift
final func validateAddingNode(_ node: ShaderGraph.Node) throws
```

## Discussion

Discussion Use canAddNode(_:) instead when only a yes/no answer is needed.
