# 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.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

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