void StartService(SerializableARSettings serializedSettings)
        {
            m_CachedSettings = serializedSettings;

            StopAllCoroutines();
            StartCoroutine(StartServiceRoutine());
        }
Esempio n. 2
0
        void StartService(SerializableARSettings serializedSettings)
        {
            m_CachedSettings = serializedSettings;
            var arInterface = ARInterface.GetInterface();

            m_ServiceRunning = arInterface.StartService(m_CachedSettings);

            if (!m_ServiceRunning)
            {
                return;
            }

            m_ARInterface = arInterface;
            m_ARInterface.SetupCamera(m_ARCamera);

            ARInterface.planeAdded   += PlaneAddedHandler;
            ARInterface.planeUpdated += PlaneUpdatedHandler;
            ARInterface.planeRemoved += PlaneRemovedHandler;
        }