Resources.UnloadUnusedAssets 卸载未使用的资源

static function UnloadUnusedAssets () : AsyncOperation

Returns

AsyncOperation - object on which you can yield to wait until the operation completes.

返回AsyncOperation对象,你可以yield等待直到操作完成。

Description描述

Unloads assets that are not used.

卸载未使用的资源。

An asset is deemed to be unused if it isn't reached after walking the whole game object hierarchy, including script components. Static variables are also examined.

如果它没有达到遍历整个游戏对象层级之后,一个资源被视为卸载,包含脚本组件。静态变量也被检查。

Page last updated: 2011-3-13