Version: 2017.1

HideFlags.DontUnloadUnusedAsset

切换到手册

描述

Resources.UnloadUnusedAssets 不会卸载该对象。

It is your responsibility to cleanup the object manually using DestroyImmediate, otherwise it will leak.