Ejemplo n.º 1
0
    private async void OnDestroy()
    {
        _objectAnchorsService.Pause();

        await _objectAnchorsService.StopDiagnosticsSessionAsync();

        RemoveObjectAnchorsListeners();

        _objectAnchorsService.Dispose();
    }
Ejemplo n.º 2
0
    private async void OnDestroy()
    {
        _objectAnchorsService.Pause();

        await _objectAnchorsService.StopDiagnosticsSessionAsync();

        RemoveObjectAnchorsListeners();

        lock (_objectQueries)
        {
            foreach (var query in _objectQueries)
            {
                if (query.Value != null)
                {
                    Destroy(query.Value.gameObject);
                }
            }
            _objectQueries.Clear();
        }

        _objectAnchorsService.Dispose();
    }
Ejemplo n.º 3
0
 private void OnDestroy()
 {
     _objectAnchorsService.Dispose();
     _objectAnchorsService = null;
 }