Version: 2022.1
言語: 日本語

SceneVisibilityManager

class in UnityEditor

/

継承:ScriptableSingleton_1

マニュアルに切り替える

説明

Manages Scene Visibility in the editor.

Public 関数

AreAllDescendantsHiddenChecks whether all the descendants of a GameObject are hidden.
AreAllDescendantsVisibleChecks whether all the descendants are visible.
AreAnyDescendantsHiddenChecks whether any descendants are hidden.
DisableAllPickingDisables picking on all GameObjects.
DisablePickingDisables picking on a GameObject, or an Array of GameObjects, and their descendants.
EnableAllPickingEnables picking on all GameObjects.
EnablePickingEnables picking on a GameObject, or an array of GameObjects, and its descendants.
ExitIsolationExits Isolation Mode.
HideHides a GameObject, or an Array of GameObjects, and their descendants.
HideAllHides all GameObjects.
IsCurrentStageIsolatedChecks whether the current stage is in Isolation mode.
IsHiddenChecks the hidden state of a GameObject and, optionally, its descendants.
IsolateIsolates a GameObject and its descendants.
IsPickingDisabledChecks the picking state of a GameObject and, optionally, its descendants.
IsPickingDisabledOnAllDescendantsChecks whether all the descendants of a GameObject have picking disabled.
IsPickingDisabledOnAnyDescendantChecks whether any descendants have picking disabled.
IsPickingEnabledOnAllDescendantsChecks whether all the descendants are pickable.
ShowShows a GameObject, or an array of GameObjects, and its descendants.
ShowAllShows all GameObjects.
TogglePickingToggles the picking ability of a GameObject.
ToggleVisibilityToggles the visible state of a GameObject.

Events

pickingChangedThe event raised whenever the picking state of a GameObject changes.
visibilityChangedThe event raised whenever the visibility of a GameObject changes.

継承メンバー

Static 変数

instanceGets the instance of the Singleton. Unity creates the Singleton instance when this property is accessed for the first time. If you use the FilePathAttribute, then Unity loads the data on the first access as well.

変数

hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameオブジェクト名

Public 関数

GetInstanceIDGets the instance ID of the object.
ToStringReturns the name of the object.

Protected 関数

SaveSaves the current state of the ScriptableSingleton.

Static 関数

DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeタイプ type から最初に見つけたアクティブのオブジェクトを返します
FindObjectsOfTypeGets a list of all loaded objects of Type type.
Instantiateoriginal のオブジェクトをクローンします
CreateInstanceScriptableObject のインスタンスを作成します。
GetFilePathGet the file path where this ScriptableSingleton is saved to.

Operator

boolオブジェクトが存在するかどうか
operator !=二つのオブジェクトが異なるオブジェクトを参照しているか比較します
operator ==2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。

メッセージ

Awake ScriptableObject スクリプトを開始するとき、この関数は呼び出されます。
OnDestroyScriptableObject が破棄されるとき、この関数は呼び出されます。
OnDisableScriptableObject クラスのオブジェクトがスコープを外れるとき、この関数は呼び出されます。
OnEnableオブジェクトがロードされたとき、この関数は呼び出されます。
OnValidateEditor-only function that Unity calls when the script is loaded or a value changes in the Inspector.
Resetデフォルト値にリセットします