# GenerateMaterials()

> Generates all necessary materials under materialFolderPath. If Version Control is enabled please first check out the folder.

## Definition

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

```csharp
public void GenerateMaterials()
```
