# Editor.CreateModelFromMeshDialog.ImportOptions.GenerateMaterials

```csharp
bool GenerateMaterials { get; set; }
```

Try generating materials for each material slot in the model. Textures must be named after
the name of a material slot, otherwise it will be left empty and material won't be generated.
Texture name suffix must match whatever name is expected by the shader (_color, _normal, etc..)

Declared in [Editor.CreateModelFromMeshDialog.ImportOptions](/api/Editor.CreateModelFromMeshDialog.ImportOptions).
Assembly: `Sandbox.Tools`.
