Skip to main content
Version: 5.11.8

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 BackendCustomSettings'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:

Backend LocationProperties Update : False

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

Country

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

City

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

Region

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

Language

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