Exemplo n.º 1
0
    private void AR_Exit()
    {
        this.Log("[App] AR_Exit");
        hamburgerButton.interactable  = true;
        exitARModeButton.interactable = false;
        hamburgerButton_canvasGroup.DOFade(1f, 0.8f);
        exitARModeButton_canvasGroup.DOFade(0f, 0.4f);
        //Restore UI?
        arOverlay_Animator.HideAROverlay_StartAnim();
        // arOverlay_Animator.HideFooter_Panel();
        //Disable image recognition scripts
        arScriptsContainer.SetActive(false);

        //Deactivate all ar contents
        GameObjectEx.FindAllOfType <ClickableTrackableUX>().ForEach(obj => obj.gameObject.SetActive(false));

        sidePanel.gameObject.SetActive(true);
        sidePanel.infoPanelsContainer.SetActive(true);
    }
Exemplo n.º 2
0
 private void RemoveARTrackables()
 {
     GameObjectEx.FindAllOfType <ClickableTrackableUX>().ForEach(obj => Destroy(obj.gameObject));
 }