# FindSubshaderTagValue(int, ShaderTagId)

> Searches for the tag specified by tagName on the SubShader specified by subshaderIndex and returns the value of the tag.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.3/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public ShaderTagId FindSubshaderTagValue(int subshaderIndex, ShaderTagId tagName)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the SubShader.**** (\[ShaderTagId]\(/engine/6000.3/script-reference/unityengine/rendering/shadertagid)): The name of the tag.

### Returns

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