# GetMissShaderName(RayTracingShader, int)

> Returns the name of a user-defined miss Shader from within a RayTracingShader.

## Definition

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

```csharp
public static string GetMissShaderName(RayTracingShader s, int shaderIndex)
```

### Parameters

**** (\[RayTracingShader]\(/engine/6000.0/script-reference/unityengine/rendering/raytracingshader)): The [RayTracingShader](/engine/6000.0/script-reference/unityengine/rendering/raytracingshader.md) instance.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The miss Shader index for which to retrieve the name. The miss Shaders defined in a [RayTracingShader](/engine/6000.0/script-reference/unityengine/rendering/raytracingshader.md) are sorted alphabetically by the Shader compiler.

### Returns

| Type                                                           | Description                                                                       |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The name of the miss Shader at the index passed using the "shaderIndex" argument. |

### Remarks

Additional Resources: [ShaderUtil.GetMissShaderCount](/engine/6000.0/script-reference/unityeditor/shaderutil/getmissshadercount.md), [ShaderUtil.GetMissShaderRayPayloadSize](/engine/6000.0/script-reference/unityeditor/shaderutil/getmissshaderraypayloadsize.md).
