# GetPropertyNames(MaterialPropertyType)

> Retrieves a list of the named properties in the material that match the input property type.

## Definition

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

```csharp
public string[] GetPropertyNames(MaterialPropertyType type)
```

### Parameters

**** (\[MaterialPropertyType]\(/engine/6000.0/script-reference/unityengine/materialpropertytype)): The type to use to query the material for named properties.

### Returns

| Type                                                               | Description |
| ------------------------------------------------------------------ | ----------- |
| [string\[\]](https://learn.microsoft.com/dotnet/api/system.string) |             |
