# shader-graph-create-custom-node

> Claude/Codex skill by [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md) · 1.1k stars · Updated 2026-10-16

Generates custom Shader Graph nodes from HLSL code. Use when the user wants a new Shader Graph node or to make existing HLSL work as a reflected function node.

## Install

```sh
git clone https://github.com/Unity-Technologies/skills /tmp/skills && ln -s /tmp/skills/skills/shader-graph-create-custom-node ~/.claude/skills/shader-graph-create-custom-node
```

## From README

Generating a custom Shader Graph node Step 1: Generate an HLSL function definition The function must be preceded by the preprocessor define UNITYEXPORTREFLECTION Step 2: Decorate with Shader Graph hint tags See resources/allhints.hlsl for all valid hint tags and patterns C\#-style documentation tags are supported outside of funchints or paramhints blocks Required function hints: sg:ProviderKey sg:SearchCategory sg:SearchTerms sg:DisplayName Step 3: Write the code to an asset Search the project for a ShaderInclude asset (.hlsl) that already contains custom Shader Graph nodes If a matching asset exists, show the user its current contents and ask for confirmation before appending the new code If no matching asset exists, create a new .hlsl asset Ensure the file begins with \#include "ShaderApiReflectionSupport.hlsl"

## Links

- HTML page: https://omgskills.com/library/unity-technologies/skills/shader-graph-create-custom-node/
- GitHub: https://github.com/Unity-Technologies/skills
- Author: [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md)

## More from this repo

- [audio-setup-mixers](https://omgskills.com/library/unity-technologies/skills/audio-setup-mixers/index.md) — Routes Audio Sources into existing Audio Mixer Groups, classifying each source by what it plays.
   - [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md) · 1.2k stars
- [build-live-game](https://omgskills.com/library/unity-technologies/skills/build-live-game/index.md) — Builds and operates a live game's backend with Unity Gaming Services.
   - [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md) · 1.2k stars
- [generate-editor-search-query](https://omgskills.com/library/unity-technologies/skills/generate-editor-search-query/index.md) — Generates Unity Search queries and opens the Search window to find assets or scene objects.
   - [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md) · 1.2k stars
