文档

Unity Engine

Unity Engine

DontUnloadUnusedAsset

The object will not be unloaded by Resources.UnloadUnusedAssets.
阅读时间1 分钟最后更新于 1 个月前

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.