Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  3. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Bug Geofence Condition Editor Bug

Discussion in 'Unity MARS' started by wintermuute, Jun 11, 2020.

  1. wintermuute

    wintermuute

    Joined:
    May 12, 2017
    Posts:
    16
    The Geolocation Shortcuts in the Geofence Condition assign the location's latitude to the condition's latitude and longitude though the lat/long of each shortcut is correct in the MarsUserGeoLocations setting object. Also, adding a new location as a shortcut to this settings object and selecting it applies the latitude to both the latitude and longitude.

    Using Unity 2019.4.0f1, MARS 1.0.1
     
  2. wintermuute

    wintermuute

    Joined:
    May 12, 2017
    Posts:
    16
    The bug is in GeoLocationShortcutButtons.cs
    Code (CSharp):
    1. shortcutAction(shortcutButton.Location.latitude, shortcutButton.Location.latitude);
    The second parameter in shortcutAction should be the location longitude
     
    Jared_playstudios likes this.
  3. jasons_unity

    jasons_unity

    Unity Technologies

    Joined:
    Dec 10, 2018
    Posts:
    17
    Thank you for the concise feedback wintermuute! We will make this change immediately.
     
    wintermuute and jmunozarUTech like this.
unityunity