Version: 2021.3
언어: 한국어
public static int lastRequiredScene ;

설명

The scene index number from the Scenes in Build list for the last scene that must be present in a Streaming Install build.

In the Editor, Unity displays this under Packaging in UWP Player Settings.
For an application to start, Unity requires all scenes in the Build Settings, up to this index, to be present on the device. If your application requires every scene in the list before the application can start, set this value to the index of the last scene in the list (scene_count - 1).
A scene may only use assets from another scene with a smaller index value. This means that the ordering of scenes within a streaming install is important because it determines the order in which Unity installs. Your application can't share assets in scenes lower down the list (larger index value) with scenes higher in the list (smaller index value).

Note: By default, Unity disables Streaming Install and ignores this value. Set supportStreamingInstall to `true` or check the Streaming Install option in PlayerSettings to enable this feature.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961