后台任务窗口显示任何正在运行的异步任务的进度。例如,您可以查看着色器编译、光照贴图烘焙和遮挡剔除的进度。
要打开后台任务窗口,请执行以下操作之一:
任务列表:按任务显示以下内容的进度信息:
后台任务窗口中的每个条目都显示有关该任务的以下信息。
部分: | 显示: | |
---|---|---|
1 | 任务名称/描述 | 任务的名称或简短描述。 |
2 | 进度条 | 指示任务完成的程度。 如果任务因进度不可衡量而导致不确定,进度条会显示一个小的填充块,从一侧移动到另一侧,直到任务完成。 |
3 | 完成比例 | 以百分比形式显示任务接近完成的程度。 对于进度不可测量的不确定任务,此区域为空。 |
4 | 取消 | 单击以取消活动任务。 如果无法取消任务,则不会出现此图标。 |
5 | 状态 | (可选)显示活动任务的当前活动的简短描述。 任务完成后,此区域显示其最终状态(例如,完成、失败或取消)。 |
6 | 已用时间/剩余时间/总耗时 | 当活动任务花费的时间超过几秒钟时,显示当前已用时间或估计剩余时间。 任务完成后,此区域显示总耗时。 |
某些任务会产生子任务。进度窗口显示父任务 (1) 中的总体进度条目,以及每个子任务 (2) 的子进度条目。
监控子任务可以帮助您确定复杂任务耗时最多的部分。这对于光照贴图烘焙等操作很有用,它可以有数百个子任务。
后台任务可以具有以下状态:
状态 | 描述 | Icon |
---|---|---|
活动 | 任务正在运行并以完成百分比或估计剩余时间报告进度。 | 无 |
不确定 | 任务正在运行并报告进度,但无法确定离完成还有多久。 | 无 |
完成 | 任务成功完成 |
![]() (确认标记) |
无响应 | 该任务在五秒钟内没有报告任何进度。 | 无 |
已取消 | 该任务不再处于活动状态,因为您手动将其取消。 某些任务无法从后台任务窗口取消。 |
![]() (警告符号) |
失败 | 该任务因失败不再处于活动状态 |
![]() (错误符号) |
使用后台任务窗口工具栏中的过滤器选项来隐藏和显示不同类型的任务。
过滤器选项 | 节目/隐藏 |
---|---|
![]() (确认标记) |
已完成的任务。 |
![]() (警告符号) |
取消和无响应的任务 |
![]() (错误符号) |
失败的任务 |
您可以直接从后台任务窗口取消一些正在运行的任务。要取消正在运行的任务,请单击取消 (** X**) 图标。
单击清除非活动按钮从列表中删除所有非活动的任务。
Unity 会自动从列表中清除大多数已完成的任务。但是,某些任务会继续保留在列表中,直到您手动清除它们。
失败和取消的任务也会保留在列表中,直到您清除它们。
要清除无响应的任务,您必须先取消它们。
Unity 编辑器状态栏显示一个全局进度条,显示所有活动任务的总体进度。它不包括已完成、失败或取消的任务。
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.