# InPrefab

> Unity imports materials as sub-assets.

## Definition

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

```csharp
[InspectorName("Use Embedded Materials")]
[Tooltip("Embed the material inside the imported asset.")]
InPrefab = 1
```

### Remarks

Materials imported as sub-assets are read-only and can only be modified after they are extracted.

When using this setting, Unity does not extract the embedded textures during import.

Additional Resources: [ModelImporter.SearchAndRemapMaterials](/engine/6000.0/script-reference/unityeditor/modelimporter/searchandremapmaterials.md), [ModelImporter.ExtractTextures](/engine/6000.0/script-reference/unityeditor/modelimporter/extracttextures.md).
