用户工具

站点工具


侧边栏

script:unityengine:unityengine.scenemanagement:classes:scenemanager:scenemanager

SceneManager 场景管理

class in UnityEngine.SceneManagement

Description 描述

Scene management at run-time.

运行时的场景管理方法。

Static Variables 静态变量

sceneCountThe total number of scenes.
场景的总数。
sceneCountInBuildSettingsNumber of scenes in Build Settings.
在BuildSettings中的场景数量。

Static Functions 静态函数

CreateSceneCreate an empty new scene with the given name additively.
创建一个空的新场景并指定名称。
GetActiveSceneGet the active scene.
获取激活的场景。
GetSceneAtGet the scene at index in the SceneManager's list of added scenes.
获取在场景管理列表添加场景的索引。
GetSceneByNameSearches through the scenes added to the SceneManager for a scene with the given name.
通过场景添加到场景管理器的指定名称查找该场景。
GetSceneByPathSearches all scenes added to the SceneManager for a scene that has the given asset path.
查找所有给定资源路径并添加到SceneManager中的场景。
script/unityengine/unityengine.scenemanagement/classes/scenemanager/scenemanager.txt · 最后更改: 2016/08/02 05:37 (外部编辑)