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.

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

最后修改:2011年3月13日 Sunday 20:30

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。