- Home /
 
               Question by 
               Khamei · Aug 08, 2017 at 01:13 PM · 
                shadershadersshader programmingshaderlabshader writing  
              
 
              Header for material properties in inspector?
I'm programming a shader and I want to achieve the same effect as the function [Header("Title")] in C# scripts but in the inspector of a material, like in the standard shader:

How is it made?
 
                 
                sin-titulo-1.jpg 
                (77.0 kB) 
               
 
              
               Comment
              
 
               
              Answer by ayemets · Aug 15, 2021 at 12:25 PM
You should write
 [Header(My Header)]_Property("Prop", float) = 1
Your answer
 
 
             Follow this Question
Related Questions
Shader - What is float3.xy? 1 Answer
Surface shader changing z value 0 Answers
How to adapt this shader into a transparent one (alpha blend) 0 Answers
Shader inverts uv map only once, how to fix it? 0 Answers
Fog not working in my Shader~ 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                