Class ParticleGUI
Editor script for the particle material inspector.
Inherited Members
Namespace: UnityEditor.Rendering.Universal.ShaderGUI
Syntax
public static class ParticleGUI
Methods
DoVertexStreamsArea(Material, List<ParticleSystemRenderer>, Boolean)
Draws the vertex streams area.
Declaration
public static void DoVertexStreamsArea(Material material, List<ParticleSystemRenderer> renderers, bool useLighting = false)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The material to use. |
List<ParticleSystemRenderer> | renderers | List of particle system renderers. |
Boolean | useLighting | Marks whether the renderers uses lighting or not. |
FadingOptions(Material, MaterialEditor, ParticleGUI.ParticleProperties)
Draws the fading options GUI.
Declaration
public static void FadingOptions(Material material, MaterialEditor materialEditor, ParticleGUI.ParticleProperties properties)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The material to use. |
MaterialEditor | materialEditor | The material editor to use. |
ParticleGUI.ParticleProperties | properties | The particle properties to use. |
SetMaterialKeywords(Material)
Sets up the keywords for the material and shader.
Declaration
public static void SetMaterialKeywords(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The material to use. |
SetupMaterialWithColorMode(Material)
Sets up the material with correct keywords based on the color mode.
Declaration
public static void SetupMaterialWithColorMode(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The material to use. |