查找未使用的资产

Finding assets not in use

有没有办法知道我所有的GO是什么,贴图,声音等等,不是所有场景都在用,要删除吗? 当我测试我的游戏时,我插入了一些纹理、声音、GO 等,其中一些没有被使用。 我正在使用 Unity 5.1.1。

当 Unity 构建可执行文件时,它只使用所需的资产来构建。您的场景或项目中可能存在的任何其他内容都将被忽略。

This answer 在 Unity Answers 上有更多信息。

A​​sset Store 中还有可用的选项,例如 this one

Asset Hunter is a tool that analyzes your buildlog and gives you an easily understandable overview over unused assets in your project folder. The results are grouped into folders and file types, making it easy to start cleaning up your project.

2018 ..

现代解决方案很简单..

单击您的场景和select“Select 依赖项”。

它会告诉你用了什么;其余未使用。原来这么简单


与 Unity 管道中的许多事情一样,使用资产非常普遍,几乎每个项目都使用一些众所周知的资产。 “A+ Assets Explorer”(link) 很常见。