Search Unity

  1. Unity wants to learn about your experiences working on a Unity project today. We'd like to hear from you via this survey.
    Dismiss Notice
  2. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice
  3. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  4. 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