com.unity.build-report-inspector
用于实现 BuildReport 类 Inspector 的 Editor 脚本。
BuildReport 类可用于访问有关上次构建的信息,并帮助您分析构建项目所花费的时间以及构建版本占用的磁盘大小。此信息可以帮助您缩短构建时间和减小构建大小。使用此脚本可以在 Editor UI 中以图形方式检查此信息,因此比脚本 API 更方便使用。
进行构建或选择包含 BuildReport 数据的文件时,可以获取 BuildReport 对象作为 BuildPlayer API (https://docs.unity3d.com/ScriptReference/BuildPipeline.BuildPlayer.html) 的返回值。
进行构建时,Unity 的默认构建设置会将此类文件写入 Library/LastBuild.buildreport(这一点将来可能会更改)。该脚本会添加一个方便的菜单快捷方式 (Window/Open Last Build Report),用于将该文件复制到 Assets 文件夹并选择它,因此您可以使用 Build Report Inspector 进行检查。
在 Inspector 中打开后,您可以使用窗口顶部的弹出菜单选择要查看的数据。
以下包版本与 Unity 2019.3 版本兼容:
文档位置: | 支持的版本: |
---|---|
com.unity.build-report-inspector@0.1 | 0.1.2-preview 0.1.1-preview 0.1.0-preview |
build, report, inspector, profile, time, size, optimize
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.