Ejemplo n.º 1
0
        private void OnTrackingLost()
        {
            Renderer[] rendererComponents = GetComponentsInChildren <Renderer> (true);
            Collider[] colliderComponents = GetComponentsInChildren <Collider> (true);

            // Disable rendering:
            foreach (Renderer component in rendererComponents)
            {
                component.enabled = false;
            }

            // Disable colliders:
            foreach (Collider component in colliderComponents)
            {
                component.enabled = false;
            }
            PipeUIUtility.Instance.RefTargetLost();
            GlobalManager.Deposit(GlobalManager.CURRENT_TAG_CANVAS);

            Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " lost");
        }