# GetShaderInfo(Shader)

> Gets ShaderInfo for the given shader.

## Definition

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

```csharp
public static ShaderInfo GetShaderInfo(Shader shader)
```

### Parameters

**** (\[Shader]\(/engine/6000.0/script-reference/unityengine/shader)): The shader to get information about.

### Returns

| Type                                                                    | Description                                                                                                          |
| ----------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| [ShaderInfo](/engine/6000.0/script-reference/unityeditor/shaderinfo.md) | Returns an instance of [ShaderInfo](/engine/6000.0/script-reference/unityeditor/shaderinfo.md) for the given shader. |
