# DontUnloadUnusedAsset

> The object will not be unloaded by Resources.UnloadUnusedAssets.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
DontUnloadUnusedAsset = 32
```

### Remarks

You must manually clear the object from memory using DestroyImmediate to avoid memory leaks.
