SharedHolograms/Assets/Holograms/Support/Underworld/UnderworldBase.cs
/// <summary>
/// Enables the target and disables the underworld.
/// </summary>
Enables the target and disables the underworld.
Enables the target and disables the underworld .
public void ResetUnderworld()
    {
        if (gameObject.activeSelf)
        {
            MonoBehaviour[] behaviours = transform.parent.gameObject.GetComponentsInChildren<MonoBehaviour>(true);
            foreach (var behaviour in behaviours)
            {
                if (!behaviour.gameObject.activeSelf)
                {
                    behaviour.gameObject.SetActive(true);
                }
            }
            gameObject.SetActive(false);
            SpatialMappingManager.Instance.gameObject.SetActive(true);
        }
    }
public void ResetUnderworld ( ) { if ( gameObject . activeSelf ) { MonoBehaviour [ ] behaviours = transform . parent . gameObject . GetComponentsInChildren < MonoBehaviour > ( true ) ; foreach ( var behaviour in behaviours ) { if ( ! behaviour . gameObject . activeSelf ) { behaviour . gameObject . SetActive ( true ) ; } } gameObject . SetActive ( false ) ; SpatialMappingManager . Instance . gameObject . SetActive ( true ) ; } }
Enables the target and disables the underworld.
Enables the target and disables the underworld .
// Grab all components from this GameObject's parent and enable them. // If the component's GameObject is disabled, enable it // Disable the underworld. // Turn spatial mapping meshes back on.