# ShaderTagId

> Shader tag ids are used to refer to various names in shaders.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.Rendering](/engine/6000.0/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule
* **Implements:** [IEquatable\<ShaderTagId>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct ShaderTagId : IEquatable<ShaderTagId>
```

## Remarks

Additional Resources: [DrawingSettings](/engine/6000.0/script-reference/unityengine/rendering/drawingsettings.md), [ScriptableRenderContext.DrawRenderers](/engine/6000.0/script-reference/unityengine/rendering/scriptablerendercontext/drawrenderers.md).

## Static Fields

| Value                                                                             | Description                                          |
| --------------------------------------------------------------------------------- | ---------------------------------------------------- |
| [none](/engine/6000.0/script-reference/unityengine/rendering/shadertagid/none.md) | Describes a shader tag id not referring to any name. |

## Constructors

| Constructor                                                                                             | Description                                                  |
| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| [ShaderTagId(System.String)](/engine/6000.0/script-reference/unityengine/rendering/shadertagid/ctor.md) | Gets or creates a shader tag id representing the given name. |

## Properties

| Property                                                                          | Description                                                |
| --------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [name](/engine/6000.0/script-reference/unityengine/rendering/shadertagid/name.md) | Gets the name of the tag referred to by the shader tag id. |

## Operators

| Operator                                                                                        | Description                                                                                                 |
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| [ShaderTagId](/engine/6000.0/script-reference/unityengine/rendering/shadertagid/op-explicit.md) | Converts a string to a [ShaderTagId](/engine/6000.0/script-reference/unityengine/rendering/shadertagid.md). |
| [string](/engine/6000.0/script-reference/unityengine/rendering/shadertagid/op-explicit.md)      | Converts a [ShaderTagId](/engine/6000.0/script-reference/unityengine/rendering/shadertagid.md) to a string. |
