Esempio n. 1
0
        public void ShowArCoreCard()
        {
            if (ARCoreHelper.CheckArCoreSupport())
            {
                _arCoreCard.SetActive(true);

#if UNITY_IOS
                _arCoreTipText.text = "Your phone has AR Kit support. Just aim camera at any horizontal surface, " +
                                      "wait a bit for AR Core magic and place the venue map by tapping the surface";
#endif

#if UNITY_ANDROID
                _arCoreTipText.text = "Your phone has AR Core support. Just aim camera at any horizontal surface, " +
                                      "wait a bit for AR Core magic and place the venue map by tapping the surface";
#endif
            }
            else
            {
                _noArCoreCard.SetActive(true);
            }
        }
        //---------------------------------------------------------------------
        // Messages
        //---------------------------------------------------------------------

        protected override void Start()
        {
            base.Start();

            _arCoreSupport = ARCoreHelper.CheckArCoreSupport();
        }
Esempio n. 3
0
        //---------------------------------------------------------------------
        // Messages
        //---------------------------------------------------------------------

        private void Awake()
        {
            _arCoreSupport = ARCoreHelper.CheckArCoreSupport();
            LoadResources();
        }
Esempio n. 4
0
        //---------------------------------------------------------------------
        // Messages
        //---------------------------------------------------------------------

        private void Awake()
        {
            _arCoreSupport = ARCoreHelper.CheckArCoreSupport();
        }
Esempio n. 5
0
 public void OnTrackingFound()
 {
     ShowARCorePanel(ARCoreHelper.CheckArCoreSupport());
 }