Exemplo n.º 1
0
 void Awake()
 {
     if (!SurfaceTracker.isAvailable())
     {
         throw new Exception("surface tracker not support");
     }
     tracker = SurfaceTracker.create();
 }
Exemplo n.º 2
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();
        }