Beispiel #1
0
        private void OnApplicationPause(bool pause)
        {
            if (pause)
            {
                visible = false;
                NxrGlobal.isMarkerVisible = false;
                for (int i = 0; i < mTransform.childCount; i++)
                {
                    mTransform.GetChild(i).gameObject.SetActive(false);
                }
            }


            if (AutoStartMarkerRecognize && pause && holoeverService != null)
            {
                holoeverService.StopMarkerRecognize();
            }
            else if (AutoStartMarkerRecognize && holoeverService != null)
            {
                holoeverService.StartMarkerRecognize();
            }
        }
Beispiel #2
0
        // Use this for initialization
        void Start()
        {
            holoeverService = NxrViewer.Instance.GetHoloeverService();
            mTransform      = gameObject.transform;

            origin = GameObject.Find("MarkerRoot");

            // Polaroid DTR
            bool dtrMode = NxrGlobal.supportDtr && NxrGlobal.distortionEnabled;

            if (dtrMode)
            {
                NxrViewer.Instance.SwitchControllerMode(false);
            }

            NxrGlobal.isMarkerVisible = false;

            if (holoeverService != null && AutoStartMarkerRecognize)
            {
                holoeverService.StartMarkerRecognize();
            }

            cameraPoseMat = new Matrix4x4();
        }