Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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.