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.
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.
Get the region of the user:
string name = RegionInfo.CurrentRegion.DisplayName;
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
4 People are following this question.
How to spawn a player in multiplayer on Android with Photon?
How can i make multiplayer online games for android?
Unity3D Multiplayer with Photon
Unity Photon - Multiple Lobbies
Photon - How can I get a list of ALL players in EVERY room?