Version: 2020.1

StageUtility

class in UnityEditor.SceneManagement

切换到手册

描述

与阶段相关的实用方法。

静态函数

GetCurrentStageThe current Stage can either be the MainStage or any other opened Stage, visualized in the Scene view as the last breadcrumb in the breadcrumb bar.
GetCurrentStageHandle获取正在编辑的当前阶段。
GetMainStageGet the MainStage object. This object is always available.
GetMainStageHandle获取包含所有当前打开的常规场景的主要阶段。
GetStageGet the Stage object that contains the input GameObject or Scene.
GetStageHandle获取给定游戏对象所在的阶段。
GoBackToPreviousStage将编辑器导航到上一阶段。
GoToMainStage将编辑器导航到主要阶段。
GoToStageNavigates the Editor to the specified stage.
IsGameObjectRenderedByCamera指定的游戏对象是否由给定的摄像机渲染?
IsGameObjectRenderedByCameraAndPartOfEditableSceneSpecifies whether the given Camera currently renders the given GameObject and the GameObject is also part of an editable scene.
PlaceGameObjectInCurrentStage将给定的游戏对象置于正在编辑的当前阶段。