- Home /
Show Button (script) Based on player Country !!!
hi,
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
Answer by M-Hanssen · Nov 17, 2016 at 08:32 AM
The best solution is to make a little investment in a localization asset like I2localization. https://www.assetstore.unity3d.com/en/#!/content/14884 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;
@$$anonymous$$-Hanssen, the asset you mentioned is no longer there. Got a new recommendation? Thanks.
Here is the link to the asset just incase you still need it. https://assetstore.unity.com/packages/tools/localization/i2-localization-14884
Hey thanks. But I figured out it can't detect country location. It only helps you translate.
Your answer
Follow this Question
Related Questions
How can i make multiplayer online games for android? 0 Answers
Ask for Location permission at the start of the App 2 Answers
How to spawn a player in multiplayer on Android with Photon? 1 Answer
Get Android devices current country location 0 Answers
Photon network won't join random room with a custom property 0 Answers