Class LitGUI
Editor script for the Lit material inspector.
Inherited Members
Namespace: UnityEditor .Rendering.Universal.ShaderGUI
Assembly: Unity.RenderPipelines.Universal.Editor.dll
Syntax
public static class LitGUI
Methods
DoClearCoat(LitProperties, MaterialEditor, Material)
Draws the clear coat GUI.
Declaration
public static void DoClearCoat(LitGUI.LitProperties properties, MaterialEditor materialEditor, Material material)
Parameters
Type | Name | Description |
---|---|---|
Lit |
properties | |
Material |
materialEditor | |
Material | material |
DoMetallicSpecularArea(LitProperties, MaterialEditor, Material)
Draws the metallic/specular area GUI.
Declaration
public static void DoMetallicSpecularArea(LitGUI.LitProperties properties, MaterialEditor materialEditor, Material material)
Parameters
Type | Name | Description |
---|---|---|
Lit |
properties | |
Material |
materialEditor | |
Material | material |
DoSmoothness(MaterialEditor, Material, MaterialProperty, MaterialProperty, string[])
Draws the smoothness GUI.
Declaration
public static void DoSmoothness(MaterialEditor materialEditor, Material material, MaterialProperty smoothness, MaterialProperty smoothnessMapChannel, string[] smoothnessChannelNames)
Parameters
Type | Name | Description |
---|---|---|
Material |
materialEditor | |
Material | material | |
Material |
smoothness | |
Material |
smoothnessMapChannel | |
string[] | smoothnessChannelNames |
GetSmoothnessMapChannel(Material)
Retrieves the alpha channel used for smoothness.
Declaration
public static LitGUI.SmoothnessMapChannel GetSmoothnessMapChannel(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material |
Returns
Type | Description |
---|---|
Lit |
The Alpha channel used for Smoothness. |
Inputs(LitProperties, MaterialEditor, Material)
Draws the surface inputs GUI.
Declaration
public static void Inputs(LitGUI.LitProperties properties, MaterialEditor materialEditor, Material material)
Parameters
Type | Name | Description |
---|---|---|
Lit |
properties | |
Material |
materialEditor | |
Material | material |
SetMaterialKeywords(Material)
Sets up the keywords for the Lit shader and material.
Declaration
public static void SetMaterialKeywords(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material |