Skip to main content
Version: 6.0.0

LocationProperties

public string Country {get; private set;}
public string City {get; private set;}
public string Region {get; private set;}
public string Language {get; private set;}

Description

Check the cached my location information.

The following three cases indicate that the location information could not loaded:

  • When BACKND's inspector value (Auto Load Location Properties) is unchecked
  • When BackndCustomSettings's autoLoadLocationProperties is declared false
  • When a method call-related problem occurred during the initialization and the "Load my location information" method was not called

If an error occurs while loading the location information, the following log is printed:

Backnd LocationProperties Update : False

If the country information was not loaded, all values are become string.Empty.

Country

Debug.Log("Country name : " + Backnd.LocationProperties.Country);

City

Debug.Log("City name : " + Backnd.LocationProperties.City);

Region

Debug.Log("Region name : " + Backnd.LocationProperties.Region);

Language

Debug.Log("Language name : " + Backnd.LocationProperties.Language);