Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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.