Version: 2020.3

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将给定的游戏对象置于正在编辑的当前阶段。
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961