DontUnloadUnusedAsset
The object will not be unloaded by Resources.UnloadUnusedAssets.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
DontUnloadUnusedAsset = 32
Remarks
You must manually clear the object from memory using DestroyImmediate to avoid memory leaks.