Search Unity

mapbox import problem

Discussion in 'Assets and Asset Store' started by jhshim0131, Mar 6, 2019.

  1. jhshim0131

    jhshim0131

    Joined:
    Mar 4, 2019
    Posts:
    3
    Hi. My problem is my unity project can't integrate mapbox properly
    I use unity 2018.3.6f1 and my os is windows 10
    mapbox - version 2.0.0
    I asked following errors:
    errors same like this 5 times
    Assets\Mapbox\Unity\Location\DeviceLocationProvider.cs(321,12): error CS0103: The name 'heading' does not exist in the current context
    and warning 175 different one and I checked the warning and it says I need to download .net core so I downloaded but it didn't work
    and I also I can't see the mapbox panel in my unity project I restarted a few times and it also didn't work.


    ===

    it worked when I use 2017.3.1f version of unity but it still doesn't work when I use 2018.3.6f1 version. Can anyone know this kind of bug? of is there any official comment from mapbox, inc. ?
     

    Attached Files:

    • cap1.png
      cap1.png
      File size:
      202.7 KB
      Views:
      648
    • cap2.png
      cap2.png
      File size:
      110.4 KB
      Views:
      660
    • cap3.PNG
      cap3.PNG
      File size:
      83.3 KB
      Views:
      671
  2. An-old-banana

    An-old-banana

    Joined:
    Aug 27, 2019
    Posts:
    1
    Same problem here.
    Double click the error and you will found the definition of "heading" is commented, I just uncomment it and everything worked well.
     
    ruiswang likes this.
  3. abhisheksingh_a97

    abhisheksingh_a97

    Joined:
    Dec 26, 2018
    Posts:
    7
    same problem and not setup window is visible.
     
    unity_258086844 likes this.
  4. ruiswang

    ruiswang

    Joined:
    Feb 22, 2023
    Posts:
    6
    thank you!

    for rest people who got this error just open that script and go to line 319 you will see this:double heading = (Math.Atan2(latDiff, lngDiff) * 180.0 / Math.PI) + 90.0f;

    uncomment it and save you should see mapbox setup window pop up in unity!