전체 글7 mapbox 하는 법 기록용 2023버전 오류 많아서 2018.4f 로 바꿔서 했음(unity는 계속 업데이트 되는데 import되는 mapbox가 2019에 멈주고 개발하다가 충돌이 너무 많아서 아예 다시함_ 구글링해도 걍 2018로 만들고 나중에 합치는게 낫다고 해서..) File > Build Settings > Android 버전 다운로드후 Switch Platform (개발환경 바꾸기) mapbox에 default token 복붙 후(오류 수정편 참고) worldscale 클릭 ar 파일들 경로끼리 부딪혀서 오류 나는데 AR core 하위의 SDK 폴더안의 plugins 파일 중 google_ar_optional.aar, google_ar_required.aar, libarcore_unity_api.so, libarpres.. 2023. 3. 10. mapbox fixed code 복붙용 namespace Mapbox.Unity.Location { using System.Collections; using UnityEngine; using Mapbox.Utils; using Mapbox.CheapRulerCs; using System; using System.Linq; /// /// The DeviceLocationProvider is responsible for providing real world location and heading data, /// served directly from native hardware and OS. /// This relies on Unity's https://docs.unity3d.com/ScriptReference/LocationService.html.. 2023. 3. 7. MapboxAR 2)) NewBehaviourScript.cs.meta fileFormatVersion: 2 guid: 99d46a78995ec1148828508c307b419f MonoImporter: externalObjects: {} serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: 2023. 3. 6. Mapbox AR 1)) NewBehaviourScript.cs using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.XR; using UnityEngine.XR.ARFoundation; [RequireComponent(typeof(ARTrackedImageManager))] public class NewBehaviourScript : MonoBehaviour { [SerializeField] private GameObject[] placeablePrefabs; private Dictionary spawnedPrefabs = new Dictionary(); private ARTrackedImageManager trackedImageManager; p.. 2023. 3. 6. 이전 1 2 다음