Class ParticleGUI
Editor script for the particle material inspector.
Inherited Members
Namespace: UnityEditor .Rendering.Universal.ShaderGUI
Assembly: Unity.RenderPipelines.Universal.Editor.dll
Syntax
public static class ParticleGUI
Methods
DoVertexStreamsArea(Material, List<ParticleSystemRenderer>, bool)
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<Particle |
renderers | List of particle system renderers. |
bool | useLighting | Marks whether the renderers uses lighting or not. |
FadingOptions(Material, MaterialEditor, 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. |
Material |
materialEditor | The material editor to use. |
Particle |
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. |