MainStage
The Main Stage contains all the currently open regular Scenes and is always available.
阅读时间4 分钟最后更新于 1 个月前
Definition
- Type: Class
- Namespace: UnityEditor.SceneManagement
- Assembly: UnityEditor
- Inherits from: Stage
public sealed class MainStage : Stage
Remarks
The Main Stage also includes the DontDestroyOnLoad Scene, which the Hierarchy sometimes shows during Play Mode, as well as every GameObject marked with the HideFlags.HideAndAndDontSave HideFlags. It includes these GameObjects because, by default, these GameObjects do not belong to any particular Scene but Unity renders them together with the Main Stage objects in the SceneView.
Other Stage types exists for Editor tooling purposes. For example, you can use PreviewSceneStage as a base class for custom Stages.
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |