Generates custom Unity Shader Graph nodes from HLSL code with reflection hint tags.
- What it does
- This skill guides the creation of a custom Shader Graph node by turning HLSL code into a reflected function node. It defines the HLSL function with the UNITY_EXPORT_REFLECTION preprocessor define, decorates it with Shader Graph hint tags such as ProviderKey, SearchCategory, SearchTerms and DisplayName, and writes the code into a ShaderInclude (.hlsl) asset. It also checks the project for an existing asset containing custom nodes and asks for confirmation before appending.
- When to use it
- Use it when the user wants to create a new Shader Graph node or make existing HLSL code work as a reflected function node in Unity.
- Requirements
- Requires the Unity Shader Graph package com.unity.shadergraph version 17.5.0 or later. Instructions only; no scripts are shipped, though a reference file of hint tags is included.