Show Button (script) Based on player Country !!!


i Want to show a Button script or, gameobject … by country

so the principle is show something by country location to show specific button or game object based on player location

i’ve searched a lot but i didn’t find anything helpful

The best solution is to make a little investment in a localization asset like I2localization.

This asset can localize everything from text to media.

To detect the country that the user is in (if standalone build, not tested on other platforms), you could use something like this:
Include the System.Globalization namespace.

using System.Globalization;

Get the region of the user:

string name = RegionInfo.CurrentRegion.DisplayName;