# explicit operator ShaderTagId

> Converts a string to a ShaderTagId.

## Definition

* **Type:** Operator
* **Namespace:** [UnityEngine.Rendering](/engine/6000.0/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

## explicit operator ShaderTagId(ShaderTagI)

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

```csharp
public static explicit operator ShaderTagId(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name to represent the shader tag id.

### Returns

| Type                                                                                | Description |
| ----------------------------------------------------------------------------------- | ----------- |
| [ShaderTagId](/engine/6000.0/script-reference/unityengine/rendering/shadertagid.md) |             |

### Remarks

Gets or creates a shader tag id representing the given name. This is equivalent to using the constructor for [ShaderTagId](/engine/6000.0/script-reference/unityengine/rendering/shadertagid.md).

## explicit operator string(Strin)

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

```csharp
public static explicit operator string(ShaderTagId tagId)
```

### Parameters

**** (\[ShaderTagId]\(/engine/6000.0/script-reference/unityengine/rendering/shadertagid)): The [ShaderTagId](/engine/6000.0/script-reference/unityengine/rendering/shadertagid.md) to get the name of.

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) |             |

### Remarks

Gets the name of the tag referred to by the shader tag id. This is equivalent to accesing the [ShaderTagId.name](/engine/6000.0/script-reference/unityengine/rendering/shadertagid/name.md) property.
