示例#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();
        }
示例#3
0
        //---------------------------------------------------------------------
        // Messages
        //---------------------------------------------------------------------

        private void Awake()
        {
            _arCoreSupport = ARCoreHelper.CheckArCoreSupport();
            LoadResources();
        }
示例#4
0
        //---------------------------------------------------------------------
        // Messages
        //---------------------------------------------------------------------

        private void Awake()
        {
            _arCoreSupport = ARCoreHelper.CheckArCoreSupport();
        }
示例#5
0
 public void OnTrackingFound()
 {
     ShowARCorePanel(ARCoreHelper.CheckArCoreSupport());
 }