Exemplo n.º 1
0
 void Awake()
 {
     if (!SurfaceTracker.isAvailable())
     {
         throw new Exception("surface tracker not support");
     }
     tracker = SurfaceTracker.create();
 }
Exemplo n.º 2
0
 public void CloseTracker()
 {
     if (tracker == null)
     {
         throw new Exception("surface tracker is null");
     }
     tracker.close();
     tracker.Dispose();
     tracker = null;
 }
Exemplo n.º 3
0
        /// <summary>
        /// MonoBehaviour Awake
        /// </summary>
        protected virtual void Awake()
        {
            if (!EasyARController.Initialized)
            {
                return;
            }
            if (!SurfaceTracker.isAvailable())
            {
                throw new UIPopupException(typeof(SurfaceTracker) + " not available");
            }

            Tracker = SurfaceTracker.create();
        }