Gradient Property for Shader

$4
Publisher Saitama Studio
File size 3.05MB
Number of files 9
Latest version 1.0.0
Latest release date 2023-08-07 11:51:12
First release date 2023-08-07 11:51:12
Supported Unity versions 2018.4.2 or higher

This asset lets you input Gradients in the Shader and material inspector directly fast, easily and of course user-friendly! 🎉Change your gradients to your desire🎉 - without any complications!


🔨 Step-by-Step guide 🔨 

  • Built-In
  1. Open your Shader of choice. 
  2. Add CustomEditor "GradientShaderEditor" to the end of the shader.
  • URP & HDRP (GRAPH)
  1. Open your Shader Graph of choice. 
  2. Open the "Graph Inspector" on the top right of the window.
  3. Select the "Graph Settings" tab in the newly opened Graph Inspector window.
  4. Under the property called "Custom Editor GUI" add GradientShaderEditor

🔨To create a new Gradient (both Built-In & URP/HDRP)

  1. Create a new Texture2D property. 
  2. Under the "Reference" name include "GradientTexture" anywhere in the name. 
  3. Save the shader and you're done! 🎉

🔍Configuration 🔍

  1. Open the "Gradient Shader Editor" script. 
  2. Configure to your liking:
    1. "regex" - naming convention (what the "reference" of a gradient should include) 
    2. "resolution" - resolution of the generated texture for each gradient

Top Publisher Assets