ShaderTagId
Shader tag ids are used to refer to various names in shaders.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
- Implements: IEquatable<ShaderTagId>
public struct ShaderTagId : IEquatable<ShaderTagId>
Remarks
Additional Resources: DrawingSettings, ScriptableRenderContext.DrawRenderers.
Static Fields
Value | Description |
|---|---|
| none | Describes a shader tag id not referring to any name. |
Constructors
Constructor | Description |
|---|---|
| ShaderTagId(System.String) | Gets or creates a shader tag id representing the given name. |
Properties
Property | Description |
|---|---|
| name | Gets the name of the tag referred to by the shader tag id. |
Operators
Operator | Description |
|---|---|
| ShaderTagId | Converts a string to a ShaderTagId. |
| string | Converts a ShaderTagId to a string. |