# GetMaterialProperties(Object[])

> Get shader property information of the materials you pass in.

## Definition

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

```csharp
public static MaterialProperty[] GetMaterialProperties(Object[] mats)
```

### Parameters

**** (\[Object\[]]\(/engine/6000.6/script-reference/unityengine/object)): The selected materials.

### Returns

| Type                                                                                    | Description                      |
| --------------------------------------------------------------------------------------- | -------------------------------- |
| [MaterialProperty\[\]](/engine/6000.6/script-reference/unityeditor/materialproperty.md) | Returns the material properties. |

### Remarks

When implementing custom MaterialEditors, you'd usually pass the `this.targets` array to this function, where `this.targets` is all the selected materials.

Additional Resources: [MaterialProperty](/engine/6000.6/script-reference/unityeditor/materialproperty.md).
