コード例 #1
0
        void StartService(SerializableARSettings serializedSettings)
        {
            m_CachedSettings = serializedSettings;

            StopAllCoroutines();
            StartCoroutine(StartServiceRoutine());
        }
コード例 #2
0
ファイル: ARRemoteDevice.cs プロジェクト: seanmoakes/tARtris
        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;
        }