https://github.com/unity-package/system-region-unity
Region Detection for Unity (Android/iOS)
https://github.com/unity-package/system-region-unity
country-codes detect-region region unity unity2d unity3d
Last synced: 6 days ago
JSON representation
Region Detection for Unity (Android/iOS)
- Host: GitHub
- URL: https://github.com/unity-package/system-region-unity
- Owner: unity-package
- Created: 2025-06-11T09:37:46.000Z (10 days ago)
- Default Branch: main
- Last Pushed: 2025-06-11T11:12:04.000Z (10 days ago)
- Last Synced: 2025-06-11T11:59:40.025Z (10 days ago)
- Topics: country-codes, detect-region, region, unity, unity2d, unity3d
- Language: C#
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How To Install
### Add the line below to `Packages/manifest.json`
for version `1.0.0`
```json
"com.unity-package.system-region":"https://github.com/unity-package/system-region-unity.git#1.0.0",
```## Use
- Use Api `RegionHelper.GetCurrentRegion()` to get the current region.
- Example usage in a script:
```csharp
private void Start()
{
Debug.Log($"region: {RegionHelper.GetCurrentRegion()}");
}
```