# InPrefab

> Unity imports materials as sub-assets.

## Definition

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

```csharp
InPrefab = 1
```

### Remarks

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

Additional Resources: [SpeedTreeImporter.SearchAndRemapMaterials](/engine/6000.5/script-reference/unityeditor/speedtreeimporter/searchandremapmaterials.md).
