SceneVisibilityManager

class in UnityEditor

/

Hereda de:ScriptableObject

Cambiar al Manual

Descripción

Manages Scene Visibility in the editor.

Funciones Públicas

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.

Miembros heredados

Variables

hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameEl nombre del objeto.

Funciones Públicas

GetInstanceIDDevuelve el id de la instancia del objeto.
ToStringReturns the name of the object.

Funciones Estáticas

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.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeDevuelve una lista de todos los objetos activos cargados de tipo type.
InstantiateClona el objeto original y devuelve el clon.
CreateInstanceCrea una instancia de un objeto scriptable.

Operadores

bool¿Existe el objeto?
operator !=Compare si dos objetos se refieren a un objeto diferente.
operator ==Compara dos referencias de objeto para ver si se refieren al mismo objeto.

Mensajes

AwakeEsta función se llama cuando el script ScriptableObject empieza.
OnDestroyEsta función se llama cuando el objeto scriptable se destruirá.
OnDisableEsta función se llama cuando el objeto scriptable se va fuera del alcance (scope).
OnEnableEsta función se llama cuando el objeto es cargado.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961