来自构建中的场景列表的场景索引号,用于必须出现在流式安装构建中的最后一个场景。
在编辑器中,Unity 在UWP 播放器设置中的打包下显示此内容。
为了使应用程序启动,Unity 要求设备上存在构建设置中所有场景,直到该索引为止。如果您的应用程序需要列表中的所有场景才能启动,请将此值设置为列表中最后一个场景的索引(scene_count - 1)。
一个场景只能使用具有更小索引值的另一个场景中的资源。这意味着流式安装中场景的排序很重要,因为它决定了 Unity 安装的顺序。您的应用程序无法将场景列表中较低位置(较大索引值)中的资源与列表中较高位置(较小索引值)中的场景共享。
注意:默认情况下,Unity 会禁用流式安装并忽略此值。将supportStreamingInstall设置为`true`或选中播放器设置中的流式安装选项以启用此功能。
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.