# GetSerializedSubshader(int)

> Obtains the serialized subshader at the given index.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.3/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public ShaderData.Subshader GetSerializedSubshader(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the serialized subshader.

### Returns

| Type                                                                             | Description                                                 |
| -------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| [Subshader](/engine/6000.3/script-reference/unityeditor/shaderdata/subshader.md) | The associated serialized subshader or null if none exists. |
