# OnPreprocessSpeedTree()

> Add this function to a subclass to get a notification just before a SpeedTree asset (.spm file) is imported.

## Definition

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

```csharp
public void OnPreprocessSpeedTree()
```

### Remarks

This function behaves much like OnPreprocessModel where you can control the SpeedTree asset import settings through code.
