Skip to main content
Version: 5.7.0

OverrideCountryCode

Sets the country code sent to brainCloud when a user authenticates. Will override any auto detected country.

These methods should be called before authenticating so that they are sent to the server.

caution

Because of a Unity limitation country code cannot be detected automatically on any platforms other than iOS and Android.

Method Parameters

ParameterDescription
countryCodeISO 3166-1 two-letter country code

Usage

http://localhost:3000
string countryCode = "CA";
_bc.OverrideCountryCode(countryCode);